removeMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (updated description)
No edit summary
 
(62 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|REMOVEMAGAZINE]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|REMOVEMAGAZINE]]
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINE]]
[[Category:Scripting Commands ArmA|REMOVEMAGAZINE]]


{{Command|= Comments
|game1= ofp
____________________________________________________________________________________________
|version1= 1.00


| ofp |= Game name
|game2= ofpe
|version2= 1.00


|1.00|= Game version
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


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


| unit '''removeMagazine''' weaponName |= Syntax
|game5= arma2oa
|version5= 1.50


|p1= unit: [[Object]] |= Parameter 1
|game6= tkoh
|version6= 1.00


|p2= weaponName: [[String]] |= Parameter 2
|game7= arma3
|version7= 0.50


| [[Nothing]] |= Return value
|arg= local
____________________________________________________________________________________________
 
|x1= <code>[[player]] removeMagazine "M16"</code> |= Example 1
____________________________________________________________________________________________


| |= See also
|gr1= Unit Inventory


}}
|descr= Remove magazine from the unit or static weapon.
 
|s1= unitName [[removeMagazine]] magazineName
 
|p1= unitName: [[Object]]
|p2= magazineName: [[String]] - see [[:Category:Weapons|weapons]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>player removeMagazine "M16";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[removeMagazines]] [[removeWeapon]] [[removeMagazinesTurret]] [[removeMagazineTurret]] [[setVehicleAmmo]]
}}

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