-
Staff Sergeant
Event handler and custom loadout issue
I have loaded and A-10 with a Kylania's CAS (remove/add ordnance) in the init as well as Draper's air support script. They work so very well. However, when the vehicle dies or you die, the custom loadout does not reapply to the A-10 and the action menu for the soldier for the Air support does not reload
a-10;
veh = [this, 60, 600, 0, TRUE] execVM "vehicle.sqf"; this removeMagazinesTurret ["4Rnd_GBU12",[-1]]; this removeMagazinesTurret ["2Rnd_Sidewinder_AH1Z",[-1]]; {this addMagazineTurret ["2Rnd_Maverick_A10",[-1]];} forEach [1,2,3]; this removeWeapon "BombLauncherA10"; this removeWeapon "SidewinderLaucher_AH1Z"; this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]
soldier;
this setGroupid ["Alpha"];nul = [this,"jadam","lgb","cbuap","cbuat","cbumine","cas" ,"helo","trans"] execVM "airSup\airSupInit.sqf";
I almost imagine another event handler has to check to see if they are alive.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules