Skip to content

Commit

Permalink
Interaction - Hide push interaction if target is in ViV cargo (#10127)
Browse files Browse the repository at this point in the history
Hide push interaction for ViV cargo
  • Loading branch information
johnb432 committed Jul 19, 2024
1 parent 2c3396a commit 37d7c4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/interaction/functions/fnc_canPush.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Can Push <BOOL>
*
* Example:
* [target] call ace_interaction_fnc_canPush
* cursorObject call ace_interaction_fnc_canPush
*
* Public: No
*/
Expand All @@ -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

0 comments on commit 37d7c4c

Please sign in to comment.