ACE_fnc_RemoveGear

Description

Remove gear from Ruck or Weapon on Back.

Parameters

_unitUnit owning the gear.  [Object]
_typeType to remove [String]
”WEP”Remove all Weapons from Ruck {_class,_count can be specified}
”MAG”Remove all Magazines from Ruck {_class,_count can be specified}
”BTH”Remove everything from Ruck
”WOB”Remove Weapon on Back
”ALL”Remove WOB and everything from Ruck
_classSpecific class to remove (Optional) [String]
_countAmount to remove, defaults to >> 1 <<, >> -1 << for all (Optional) [Number] Returns:
BOOLSuccessfully removed or not

Example

[player, "BTH"] call ACE_fnc_RemoveGear;
[player, "MAG", "ACE_5Rnd_762x51_T_M24"] call ACE_fnc_RemoveGear;
[player, "WEP", "ACE_M4A1_ACOG", -1] call ACE_fnc_RemoveGear;

Author

tcp, © 2010

Close