Warning: file_put_contents(/ff_76e9508a1f63508f3a5712372f08597f3281f8a7931a5486.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
magazinesDetail - OFPEC Scripting Command Reference | OFPEC The Editing Center

magazinesDetail vehicleName

Operand types

vehicleName: Object

Type of returned value

Description

Returns an array of strings with description of all vehicle's magazines, their ammo count (current/default) and their ids.

When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons. Use currentMagazineDetail to get this information for a currently loaded magazine.

Used In

Arma3

Example

magazinesDetail tank1;
// using 'M2A1 Slammer NATO' returns
["120mm APFSDS-T(32/32)[id/cr:21/0]",
"120mm HE-T(16/16)[id/cr:22/0]",
"6.5mm 2000Rnd LMG Belt(2000/2000)[id/cr:23/0]",
"6.5mm 2000Rnd LMG Belt(2000/2000)[id/cr:24/0]"]

Advertisement