Interaction - Hide push interaction if target is in ViV cargo (#10127)

Hide push interaction for ViV cargo
This commit is contained in:
johnb432
2024-07-19 18:26:14 +02:00
committed by GitHub
parent 2c3396a4e8
commit 37d7c4c544

View File

@ -10,7 +10,7 @@
* Can Push <BOOL>
*
* Example:
* [target] call ace_interaction_fnc_canPush
* cursorObject call ace_interaction_fnc_canPush
*
* Public: No
*/
@ -19,4 +19,5 @@ params ["_target"];
alive _target &&
{getMass _target <= 2600 || getNumber (configOf _target >> QGVAR(canPush)) == 1} &&
{vectorMagnitude velocity _target < 3}
{vectorMagnitude velocity _target < 3} &&
{isNull isVehicleCargo _target} // Check if vehicle is loaded as ViV cargo