Description
Remove a weapon from a unit. An attempt to remove a weapon, which is not in unit's possession, is simply ignored.
Syntax
Syntax 1
unit removeWeaponGlobal weapon
Parameters:
Returns: Nothing
Syntax 2
since arma3 2.20
object removeWeaponGlobal [weapon, autoselect]
Parameters:
object: Object - unit or vehicleweapon: String - weapon class nameautoselect: String - (Optional, default true) false to abort weapon autoselection when removing primary weapon.
Returns: Nothing
Examples
Example 1
{
_x removeWeaponGlobal "Laserdesignator";
} forEach allUnits;
Example 2
{
if (typeOf _x == "O_Heli_Attack_02_black_F") then {
_x removeWeaponGlobal "rockets_Skyfire";
};
} forEach vehicles;
See also
addWeaponGlobal · removeWeapon · removeMagazine · removeMagazineGlobal · removeAllWeapons