ACE_fnc_PutWeaponOnBack

Description

Move a weapon into the ‘On Back’ slot, performing checks to see if it fits.  The weapon must already be in that unit’s weapon inventory.

Parameters

_unitUnit owning the weapon.  [Object]
_weaponClass name of weapon to move into the “On Back” slot.  [String]

Returns

”true” if weapon was successfully moved or “false” if not.  [Boolean]

Example

player addWeapon "SVD_CAMO";
_success = [player, "SVD_CAMO"] call ACE_fnc_PutWeaponOnBack;

Author

tcp, © 2010

Close