magazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(add. see also)
Line 1: Line 1:
[[Category:Scripting Commands|MAGAZINES]]
[[Category:Scripting Commands OFP 1.96|MAGAZINES]]
[[Category:Scripting Commands ArmA|MAGAZINES]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
{{Command|= Comments
{{Command|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 24: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
|[[ammo]] |= See also


}}
}}
Line 39: Line 35:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|MAGAZINES]]
[[Category:Scripting Commands OFP 1.96|MAGAZINES]]
[[Category:Scripting Commands ArmA|MAGAZINES]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 22:33, 14 January 2008

Hover & click on the images for description

Description

Description:
Returns array of type names of all a vehicles (soldier unit is also a vehicle) magazines.
Groups:
Uncategorised

Syntax

Syntax:
magazines vehicle
Parameters:
vehicle: Object
Return Value:
Array

Examples

Example 1:
_mags = magazines player

Additional Information

See also:
ammo

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

Notes

Ceeeb
In OFP v1.96, if a weapon is loaded with an empty magazine, that magazine will still be counted by this command. The ammo command can be used to check if a unit has any ammunition in it's last magazine.

Bottom Section