removeWeaponGlobal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.76
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.76

Description

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:
unit removeWeaponGlobal weapon
Parameters:
unit: Object - unit or vehicle
weapon: String - weapon class name
Return Value:
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;

Additional Information

Multiplayer:
-
See also:
addWeaponGlobalremoveWeaponremoveMagazineremoveMagazineGlobalremoveAllWeapons

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section