removeMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
m (Text replacement - "{{Command " to "{{RV|type=command ")
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINES]]
[[Category:Scripting Commands OFP 1.46|REMOVEMAGAZINES]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{Command
{{RV|type=command


| ofp
| ofp

Revision as of 11:36, 23 January 2021


Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Inventory

Syntax

Syntax:
Syntax needed
Parameters:
unitName: Object
magazineName: String
Return Value:
Return value needed

Examples

Example 1:
player removeMagazines "30Rnd_556x45_Stanag";

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


pyro05x
Though BIS did not provide a command to remove all magazines of every type, it can still be accomplished using forEach magazines. example:
{player removeMagazine _x} forEach magazines player