removeMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(58 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Remove magazine from the unit.<br>
|game3= arma1
'''Note:''' You may create invalid combinations with this function. When doing so, application behaviour is undefined. |= Description
|version3= 1.00
____________________________________________________________________________________________


| [[Object#Unit|Unit]] '''removeMagazine''' "magazineName" |= Syntax
|game4= arma2
|version4= 1.00


|p1= magazineName: [[String]] (class [[:Category:Weapons|weapons]])|= Parameter 1
|game5= arma2oa
|version5= 1.50


| [[Nothing]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <code>[[player]] removeMagazine "M16"</code> |= Example 1
____________________________________________________________________________________________


| [[removeMagazines]], [[removeWeapon]] |= See also
|game7= arma3
|version7= 0.50


}}
|arg= local
 
|gr1= Unit Inventory
 
|descr= Remove magazine from the unit or static weapon.
 
|s1= unitName [[removeMagazine]] magazineName


<h3 style="display:none">Notes</h3>
|p1= unitName: [[Object]]
<dl class="command_description">
|p2= magazineName: [[String]] - see [[:Category:Weapons|weapons]]
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>player removeMagazine "M16";</sqf>


[[Category:Scripting Commands|REMOVEMAGAZINE]]
|seealso= [[removeMagazines]] [[removeWeapon]] [[removeMagazinesTurret]] [[removeMagazineTurret]] [[setVehicleAmmo]]
[[Category:Scripting Commands OFP 1.96|REMOVEMAGAZINE]]
}}
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINE]]
[[Category:Scripting Commands ArmA|REMOVEMAGAZINE]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:35, 3 November 2024

Hover & click on the images for description

Description

Description:
Remove magazine from the unit or static weapon.
Groups:
Unit Inventory

Syntax

Syntax:
unitName removeMagazine magazineName
Parameters:
unitName: Object
magazineName: String - see weapons
Return Value:
Nothing

Examples

Example 1:
player removeMagazine "M16";

Additional Information

See also:
removeMagazines removeWeapon removeMagazinesTurret removeMagazineTurret setVehicleAmmo

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