magazinesTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (<code> tidy)
Line 20: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_mags <nowiki>=</nowiki> vehicle player '''magazinesTurret''' [0,0]</code> |= Example 1
|x1= <code>_mags = [[vehicle]] [[player]] [[magazinesTurret]] [0, 0];</code> |= Example 1
|x2= <code>_mags <nowiki>=</nowiki> _tank '''magazinesTurret''' [0]</code> |= Example 2
|x2= <code>_mags = _tank [[magazinesTurret]] [0];</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 04:56, 19 March 2014

Hover & click on the images for description

Description

Description:
Returns all magazines of given turret. Use turret path [-1] for driver's turret.
Groups:
Uncategorised

Syntax

Syntax:
vehicle magazinesTurret turretPath
Parameters:
vehicle: Object
turretPath: Array
Return Value:
Array of Strings

Examples

Example 1:
_mags = vehicle player magazinesTurret [0, 0];
Example 2:
_mags = _tank magazinesTurret [0];

Additional Information

See also:
addMagazineTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretmagazinesmagazinesDetail, magazinesAmmomagazinesAmmoFull

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

Bottom Section