Results 1 to 3 of 3

Thread: airstrike script help

  1. #1

    airstrike script help

    //Create plane and pilot
    A10squad = CreateGroup West;
    plane = createVehicle ["A10", [(getMarkerPos "a10_spawn") select 0,(getMarkerPos "a10_spawn") select 1, 350], [], 500, "FLY"];
    pilot = A10squad createUnit ["USMC_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];
    pilot moveInDriver plane;
    pilot setSkill 1;
    plane FlyInHeight 200;

    //Set target
    plane setBehaviour "RED";
    plane selectWeapon "BombLauncherA10";
    plane doTarget trg;
    plane doWatch trg;
    plane doFire trg;

    //Waypoints
    wp1 = A10squad addWaypoint [(getmarkerpos "a10_target"), 0];
    wp1 setWaypointSpeed "NORMAL";
    wp1 setWaypointType "MOVE";
    wp2 = A10squad addWaypoint [(getmarkerpos "a10_end"), 0];
    wp2 setWaypointSpeed "NORMAL";
    wp2 setWaypointType "MOVE";


    exit
    Plane spawns. Flys over, but never fires!
    "trg" is an invisible helipad.

    I just want to be able to trigger this script to bomb the set "trg".

    Any help would be appreciated.

  2. #2
    Code:
    wp1 setWaypointStatements ["true","bomb = ""Bo_GBU12_LGB"" createVehicle getPos trg;"];

  3. #3
    Quote Originally Posted by kylania View Post
    Code:
    wp1 setWaypointStatements ["true","bomb = ""Bo_GBU12_LGB"" createVehicle getPos trg;"];

    I fkn love you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •