magazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (VBS2 scripting category removal)
m (Text replace - "</dt>" to "")
Line 27: Line 27:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dd class="note">
<dd class="note">
In '''OFP v1.96''', if a weapon is loaded with an empty magazine, that magazine will still be counted by this command. The [[ammo|ammo]] command can be used to check if a unit has any ammunition in it's last magazine.
In '''OFP v1.96''', if a weapon is loaded with an empty magazine, that magazine will still be counted by this command. The [[ammo|ammo]] command can be used to check if a unit has any ammunition in it's last magazine.

Revision as of 14:30, 21 October 2011

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:
ammoweapons

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