magazines: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Dr Eyeball (talk | contribs) (This command does not include non-turret magazines, such as flares, etc.) |
||
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 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. | ||
<dd class="notedate">Posted on 25 November 2011 | |||
<dt class="note>'''[[User:Dr_Eyeball|Dr_Eyeball]]''' | |||
<dd class="note"> | |||
This command does not include non-turret weapon magazines, such as smoke, flare or chaff magazines which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy. | |||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 11:46, 25 November 2011
Description
- Description:
- Returns array of type names of all a vehicles (soldier unit is also a vehicle) magazines.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_mags = magazines player
Additional Information
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.
- Posted on 25 November 2011
- Dr_Eyeball
- This command does not include non-turret weapon magazines, such as smoke, flare or chaff magazines which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.75
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- Command Group: Weapons
- Command Group: Object Information