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

itemsWithMagazines unitName

Operand types

unitName: Object

Type of returned value

Description

Returns combined array including all unit's items and all unit's magazines.

Loaded magazines such as currentMagazine, primaryWeaponMagazine, secondaryWeaponMagazine, handgunMagazine as well as assignedItems are excluded.

Used In

Arma3

Example

itemsWithMagazines player;
// for NATO rifleman returns
["FirstAidKit",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"Chemlight_green",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag",
"16Rnd_9x21_Mag",
"16Rnd_9x21_Mag",
"SmokeShell",
"SmokeShellGreen",
"Chemlight_green",
"HandGrenade",
"HandGrenade"]

Advertisement