removeMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
No edit summary
 
(45 intermediate revisions by 2 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


|arg= local|Multiplayer Arguments=
|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
____________________________________________________________________________________________


| unitName '''removeMagazine''' magazineName |SYNTAX=
|game5= arma2oa
|version5= 1.50


|p1= unitName: [[Object]] |PARAMETER1=
|game6= tkoh
|p2= magazineName: [[String]] - see [[:Category:Weapons|weapons]]|PARAMETER2=
|version6= 1.00


| [[Nothing]] |RETURNVALUE=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <code>[[player]] removeMagazine "M16"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[removeMagazines]], [[removeWeapon]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[setVehicleAmmo]] |SEEALSO=
|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.99|{{uc:{{PAGENAME}}}}]]
}}
[[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}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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