removeWeapon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 4: Line 4:
[[Category:Scripting Commands ArmA|REMOVEWEAPON]]
[[Category:Scripting Commands ArmA|REMOVEWEAPON]]


{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066">'''''unit'' removeWeapon ''weaponName'''''</h2>
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Remove weapon from the unit. Note: You may create invalid combinations with this function. When doing so, application behaviour is undefined. |= Description
____________________________________________________________________________________________


'''unit:''' [[Object]]
| unit '''removeWeapon''' weaponName |= Syntax


'''weaponName:''' [[String]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
|p2= weaponName: [[String]] |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>[[player]] removeWeapon "M16"</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
|  |= See also


Remove weapon from the unit.
}}


'''Note:''' You may create invalid combinations with this function.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
You may create invalid combinations with this function.


When doing so, application behaviour is undefined.
When doing so, application behaviour is undefined.  
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
 
[[player]] '''removeWeapon''' "M16"

Revision as of 03:29, 3 August 2006


Hover & click on the images for description

Description

Description:
Remove weapon from the unit. Note: You may create invalid combinations with this function. When doing so, application behaviour is undefined.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
[[player]] removeWeapon "M16"

Additional Information

See also:
See also needed

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

You may create invalid combinations with this function. When doing so, application behaviour is undefined.

Bottom Section