magazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#))?\]\] " to "") |
||
Line 50: | Line 50: | ||
{{GameCategory|arma1|Scripting Commands}} | {{GameCategory|arma1|Scripting Commands}} | ||
{{GameCategory|arma2|Scripting Commands}} | {{GameCategory|arma2|Scripting Commands}} | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
{{GameCategory|tkoh|Scripting Commands}} | {{GameCategory|tkoh|Scripting Commands}} |
Revision as of 23:19, 24 March 2021
Description
- Description:
- Description needed
- Groups:
- Unit InventoryVehicle Inventory
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object - unit or vehicle
- Return Value:
- Return value needed
Alternative Syntax
- Syntax:
- magazines [vehicle, includeEmpty] Template:Since
- Parameters:
- vehicle: Object - unit or vehicle
- includeEmpty: Boolean - (Optional, default false) true to include empty magazines
- Return Value:
- Array
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
- 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 into it is 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.