2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-05-13 14:33:15 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Checks if the boat can be pushed.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Can Push <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2024-07-19 16:26:14 +00:00
|
|
|
* cursorObject call ace_interaction_fnc_canPush
|
2016-05-13 14:33:15 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_target"];
|
|
|
|
|
|
|
|
alive _target &&
|
2021-02-18 18:58:08 +00:00
|
|
|
{getMass _target <= 2600 || getNumber (configOf _target >> QGVAR(canPush)) == 1} &&
|
2024-07-19 16:26:14 +00:00
|
|
|
{vectorMagnitude velocity _target < 3} &&
|
|
|
|
{isNull isVehicleCargo _target} // Check if vehicle is loaded as ViV cargo
|