Search the Community
Showing results for tags 'magazinesammofull'.
Found 2 results
-
Backpack location with magazinesAmmoFull
HazJ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I am a little stuck. Basically, I am looping through all magazines and checking if in backpack, if so, push to array with classname and count. The issue is that the location doesn't appear to work. It always returns the current muzzle but it shouldn't? At least not on every loop since there is only one mag in the weapon. it is a bit messy atm as just trying to get it working: { hintSilent str _x; if ((_x select 4) isEqualTo "Backpack" && !(_x select 2)) then { _bpMagazines pushBack [(_x select 0), (_x select 1)]; }; } forEach (magazinesAmmoFull _unit); I am aware of backpackMagazines command but the format is weird and I also need to get the actual ammo count, not total mags. When I remove the magazine from the weapon, it works just fine. What am I missing? Surely it should re-check the location of the magazine per loop through? Any help would be great. EDIT: It works if I just output the command but when using a forEach loop, it doesn't. No idea why. -
Anyone know why magazinesAmmoFull is always returning -1 for mag type? Wiki says "n/a" but why? It is primary weapon mag type. Maybe it is just me? I loop through all magazines. I even tried it with just primary magazines in my loadout (no frag grenades, etc): hintSilent format ["%1", ((magazinesAmmoFull player select 0) select 3)]; Output: -1 https://community.bistudio.com/wiki/magazinesAmmoFull