ACE3/addons/interaction/functions/fnc_canPush.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

23 lines
414 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Jonpas
* Checks if the boat can be pushed.
*
* Arguments:
* 0: Target <OBJECT>
*
* Return Value:
* Can Push <BOOL>
*
* Example:
* [target] call ace_interaction_fnc_canPush
*
* Public: No
*/
params ["_target"];
alive _target &&
{getMass _target <= 2600 || getNumber (configOf _target >> QGVAR(canPush)) == 1} &&
{vectorMagnitude velocity _target < 3}