magazineTurretAmmo: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
mNo edit summary
 
Line 14: Line 14:
|p2= magazineClass: [[String]]
|p2= magazineClass: [[String]]


|p3= turretPath: [[Array]] format [[Turret Path]] - [-1] for driver turret is supported
|p3= turretPath: [[Turret Path]] - [-1] for driver turret is supported


|r1= [[Number]]
|r1= [[Number]]

Latest revision as of 08:49, 2 January 2026

Hover & click on the images for description

Description

Description:
Returns ammo count of given magazine from given turret (see setMagazineTurretAmmo for more info)
Groups:
Turrets

Syntax

Syntax:
vehicle magazineTurretAmmo [magazineClass, turretPath]
Parameters:
vehicle: Object
magazineClass: String
turretPath: Turret Path - [-1] for driver turret is supported
Return Value:
Number

Examples

Example 1:
vehicle player magazineTurretAmmo ["cls", [0]];

Additional Information

See also:
setMagazineTurretAmmo magazinesAllTurrets ammoOnPylon

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Sa-Matra - c
Posted on May 04, 2024 - 11:38 (UTC)
Returns ammo for first magazine, not loaded magazine.