If this thread is better suited to the mission editing and scripting forum, please move it.
I am trying to replace the two PKT machine guns in the Taki Mi-8 with KPVT guns. While I have been successful in replacing the gun in the crew chief's seat, I have not been so successful in the rear gunner. Is there a command to add a weapon to a specific turret like there is for magazines? Here's what I've got so far.
Obviously this is not the entire script, just the part pertaining to this specific vehicle. I'm pretty certain the primary issue here is that "addWeapon" has not ability to intelligently assign the weapon to an empty turret, but I don't know any command that could do so. With this script the crew chief's gun works fine, but the rear gunner's weapon is backwards (facing the aircraft's forward hemisphere, i.e. into the cabin) and completely empty.Code:if (_unit isKindOf "Mi17_TK_EP1") then {{_vehicle removeMagazineTurret ["100Rnd_762x54_PK",[0]];} forEach [1,2,3,4,5,6,7,8,9,10,11]; {_vehicle removeMagazineTurret ["100Rnd_762x54_PK",[1]];} forEach [1,2,3,4,5,6,7,8,9,10,11]; _vehicle removeweapon "PKT"; _vehicle removeweapon "PKT_2"; _vehicle addMagazineTurret ["500Rnd_145x115_KPVT",[0]]; _vehicle addMagazineTurret ["500Rnd_145x115_KPVT",[1]]; _vehicle addWeapon "KPVT"; _vehicle addWeapon "KPVT";};
On a different note, I've been trying to replace the GBU-12s and AGM-65s on the A-10 with Mk.82 bombs (from Mk82BombLauncher_6). While I can successfully replace all related weapons, the AIM-9s always get shoved down to one of the inner pylons, with Mk.82 bombs taking up the starboard sidewinder rails. Is there any way to get the AIM-9s to stay where they should be, or is this an issue BIS needs to fix?
HOME
Reply With Quote
[FRL]Myke

