removeMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(39 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


|gr1= Weapons |GROUP1=
|game4= arma2
|version4= 1.00


|gr2= Unit Inventory |GROUP2=
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


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


| unitName '''removeMagazine''' magazineName |SYNTAX=
|game7= arma3
|version7= 0.50


|p1= unitName: [[Object]] |PARAMETER1=
|arg= local
|p2= magazineName: [[String]] - see [[:Category:Weapons|weapons]]|PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|gr1= Unit Inventory
____________________________________________________________________________________________
 
|x1= <code>[[player]] removeMagazine "M16"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[removeMagazines]], [[removeWeapon]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[setVehicleAmmo]] |SEEALSO=
|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 Armed Assault|REMOVEMAGAZINE]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{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