magazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(+ category)
mNo edit summary
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns array of type names of all vehicle's magazines. |= Description
| Returns array of type names of all a vehicle's (r person's) magazines. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''magazines''' vehicle |= Syntax
| [[Boolean]] <nowiki>=</nowiki> '''magazines''' [[Object#Unit|Unit]]|= Syntax


|p1= vehicle: [[Object]] |= Parameter 1


| [[Array]] |= Return value
| [[Array]] |= Return value

Revision as of 06:23, 28 August 2007


Hover & click on the images for description

Description

Description:
Returns array of type names of all a vehicle's (r person's) magazines.
Groups:
Uncategorised

Syntax

Syntax:
Boolean = magazines Unit
Return Value:
Array

Examples

Example 1:
_mags = magazines player

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

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