removeWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 46: Line 46:
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 13:02, 25 March 2013

Hover & click on the images for description

Description

Description:
Remove weapon from a unit.
Note: It is possible to create invalid combinations with this command (ie, attempting to remove a weapon that a unit does not possess). When doing so, application behaviour is undefined.
Groups:
Uncategorised

Syntax

Syntax:
unitName removeWeapon weaponName
Parameters:
unitName: Object
weaponName: String
Return Value:
Nothing

Examples

Example 1:
player removeWeapon "M16"

Additional Information

See also:
addWeaponremoveAllWeapons

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

  • CTD may occur in certain conditions: when shooter is AI and is currently shooting at target in some proximity (tested with M136 on ACE 1.08 and Compact Fix 1.14H+). Even "dropweapon" action may cause CTD with AI. --zGuba 14:30, 27 May 2009 (CEST)

Bottom Section