removeWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (locality, general tidy up)
mNo edit summary
Line 16: Line 16:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object#Unit|Unit]] '''removeWeapon''' "weaponName" |= Syntax
| unitName '''removeWeapon''' weaponName |= Syntax


|p1= weaponName: [[String]] |= Parameter 1
|p1= unitName: [[Object]] |= Parameter 1
|p2= weaponName: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 14:56, 24 January 2009

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

Bottom Section