Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.50

Description

Description:Returns the available magazines for a specified turret.

The returned array contains one entry per magazine type. This entry consists of the magazine class name and an array, listing the ammunition count for each of the equipped magazines. For example:

["vbs2_mag_100rnd_127x99_Trace_browning_m2",[77,100,100,100,100,100,100,100]]

Syntax

Syntax:getMagazinesTurret [vehicle, turret]
Parameters:
  • vehicle : Object - Vehicle to check.
  • turret: Array - Turret path.
Return Value:Array - List of equipped magazines (see description)

Examples

Examples:
_tankMags = getMagazinesTurret [tank1,[0]]; 
/* might return: 
[
  ["vbs2_mag_25rnd_Sh_120_sabot_KEWa2",[25]]
  ["vbs2_mag_10rnd_Sh_120_HEAT_m830",[10]]
  ["vbs2_mag_5rnd_Sh_120_APERS_m1028",[5]]
  ["vbs2_mag_2800rnd_762x51_Trace_fn_mag_veh",[2800,2800,2800,2800]]
]
*/

Additional Information

See also: fn vbs getMagazines, getVehicleAmmo, magazinesEx
Multiplayer: 
Problems: 

Notes