Skip to content

Commit

Permalink
Fix move asset not working on Petros (#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaj22 authored Jun 20, 2024
1 parent 99cde30 commit 0701984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion A3A/addons/core/functions/UtilityItems/fn_carryItem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Example:
params ["_item", "_player"]; // standard addAction

// Redo the checks, because this function might be delayed by script load
if ((count crew _item != 0) or (!isNull attachedTo _item) or (call A3A_fnc_isCarrying) or (!isNull objectParent _player)) exitWith {};
if ((!isNull attachedTo _item) or (call A3A_fnc_isCarrying) or (!isNull objectParent _player)) exitWith {};
if (_item isKindOf "StaticWeapon" and count crew _item != 0) exitWith {};

// Go unscheduled to keep the state consistent
isNil {
Expand Down

0 comments on commit 0701984

Please sign in to comment.