removeMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINES]]
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINES]]
[[Category:Scripting Commands ArmA|REMOVEMAGAZINES]]
[[Category:Scripting Commands ArmA|REMOVEMAGAZINES]]
{{Command|= Comments
____________________________________________________________________________________________


| ofp |= Game name


<h2 style="color:#000066">'''''unit'' removeMagazines ''weaponName'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Remove all magazines of given type from the unit. Note: You may create invalid combinations with this function. When doing so, application behaviour is undefined. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''removeMagazines''' weaponName |= Syntax


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


'''weaponName:''' [[String]]
|p2= weaponName: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>[[player]] removeMagazines "M16"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Remove all magazines of given type from the unit.
<h3 style="display:none">Notes</h3>


'''Note:''' You may create invalid combinations with this function.
<dl class="command_description">
<!-- Note Section BEGIN -->


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


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

Revision as of 03:27, 3 August 2006


Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
[[player]] removeMagazines "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

Bottom Section