I am terrible at scripts, just started with them a month or two ago but I was reading MR Murrays guide and tried to use mando_bombs and this is what I cranked out. I guess I'll post it here, even though its has to do with mando bombs, because Its thrown together with other stuff. I'm not getting any error message at the top of the screen, but no plane spawns. I have gamelogics planespawn and pilotspawn set up in the editor. Its probably a completely non-functional script so could someone just point me in the right direction? Thanks a lot.
bombsaway.sqs
; Predefined airstrike script
; create the guy and plane
_PlaneG = createGroup WEST;
_plane = createVehicle ["AV8B", getpos planespawn,[], 0, "FLY"];
_plane setpos [(getPos _plane select 0),(getPos _plane select 1),900] ;
_pilot = "SoldierWPilot" createUnit [getPos pilotspawn, _PlaneG, "P1=this"];
_Plane setVelocity [100,0,0] ;
~0.4
P1 moveinDriver _plane;
P1 setDamage 0;
P1 action ["gear_up", vehicle P1] ;
_plane flyinHeight 150;
_plane setSpeedMode "full";
;mando bombs (R_H is just a test target)
_scr = [P1, R_H, false, [2, 0, -2],150]execVM"mando_bombs\mando_bombs.sqf";
;check to see if bomb run complete
#missioninprogress
if (scriptDone _scr) then goto "flyway";
~5
goto "missioninprogress"
;head toward deletion area
#flyaway
_plane flyInHeight 300;
P1 doMove getPos despawn;
#CHECK
~5
? (_plane distance despawn) < 1000 : goto "END";
goto "CHECK"
;delete `em
#END
deletevehicle _plane;
deleteGroup _PlaneG
deletevehicle P1;
exit