im trying to allow players to re-arm the AH6J_EP1_DZE
since I cannot find the 4000Rnd_762x51_M134 (just wont spawn)
I would like to use 2 2000 rnd mags to give littlebird 4000 rounds
no matter what I try it will show add M134 ammo option in scroll, even if player only has 1 mag
whats wrong with this?????????
_isalb = cursorTarget isKindOf "AH6J_EP1_DZE"; if ("2000Rnd_762x51_M134" in magazines Player) and ("2000Rnd_762x51_M134" in magazines Player) then { _hasmags = true; } else { _hasmags = false; }; if (_isalb and _hasmags) then { if (s_player_litl < 0) then { // s_player_litl = player addAction [("<t color=""#39C1F3"">" + ("add M134 ammo x2") +"</t>"), "custom\littlebird.sqf",_cursorTarget, 0, true, false, "",""]; s_player_litl = player addAction ["add M134 ammo","custom\littlebird.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_litl; s_player_litl = -1; };
I have tried a few wayz...
if (cursorTarget isKindOf "AH6J_EP1_DZE" && ("2000Rnd_762x51_M134" in magazines player) and ("2000Rnd_762x51_M134" in magazines player) and (player distance cursorTarget < 5) and _canDo) then { if (s_player_litl < 0) then { s_player_litl = player addAction ["add M134 ammo x2","custom\littlebird.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_litl; s_player_litl = -1; };
any help would be great..
I just cant see the problem