Results 1 to 5 of 5

Thread: Cluster Bomb run won't work from trigger or waypoint

  1. #1

    Cluster Bomb run won't work from trigger or waypoint

    I'm using Nicolas cluster bomb script that he triggers from the option scroll from the C-130. It works fine that way and perfect.

    I try do do the same when the plane enters a trigger area or waypoint. It does run the script, because it does announce the "Bombs Away" text. But they don't drop.

    // Author: Nicolas
    // version: 1.0


    //variables
    _bomb = "RHIB";
    _bomb2 = "RHIB";
    _plane = _this select 0;
    _i= 0;
    player globalChat format["%1","Bombs away!"];


    //spawning bombs
    for [{_i=1}, {_i<6}, {_i=_i+1}] do //change 6 for whatever number of bombs you want the c-130 to be able to drop (here its 6x2 = 12 bombs)
    {
    _bomb = "Bo_GBU12_LGB" createVehicle [1000, 1000, 1000];
    _bomb attachTo [_plane, [4, 0, -5]]; //spawn under left wing
    sleep 0.01; //allow the bomb to be attached before detaching it
    detach _bomb;
    sleep 0.15;


    _bomb2 = "Bo_GBU12_LGB" createVehicle [1000, 1000, 1000];
    _bomb2 attachTo [_plane, [-4, 0, -5]]; //spawn under right wing
    sleep 0.01; //allow the bomb to be attached before detaching it
    detach _bomb2;
    sleep 0.15;
    };

    //destroying variables
    _bomb = nil;
    _bomb2 = nil;
    _plane = nil;
    _i = nil;

    -------------- Calling it with -------------- from waypoint
    _nil = [] execVm "carpet.sqf";

    -----------------
    I'm just learning a lot of this, but my other stuff runs well. Cept this from a waypoint.
    [IMG][/IMG]

    "Nice...." - Sion Lenton's only statement to the community after launch of Dragon Rising.

  2. #2
    Staff Sergeant
    Join Date
    Jul 16 2009
    Location
    San Antonio, Tx.
    Posts
    208
    Well, do you have a plane flying?

    _plane = _this select 0;

    This line tells what plane is there to attach the bombs too.


    _nil = [myplanename] execVm "carpet.sqf";

  3. #3
    Quote Originally Posted by Big_Daddy View Post
    Well, do you have a plane flying?

    _plane = _this select 0;

    This line tells what plane is there to attach the bombs too.


    _nil = [myplanename] execVm "carpet.sqf";

    yeah plane is flying. fires off the "bombs away" as it passes the trigger.

    duy, didn't put in [myplanename]

    It drops them quite nicely. I'm too tired, THANKS!

  4. #4
    I've been able to use the Script just fine if I'm flying the plane but have been unsuccessful at getting the bombs to drop with a trigger. Can someone please give a little detail as how to do this. All I'm looking for is something very basic. Fly over a 100x100 trigger and drop a payload of bombs. Thanks and sorry for such a noob question. Thanks in advance.

  5. #5
    only thread i came up with in a search so...
    i want a bomb to drop on a trigger, not from a plane but just have it fall ( want it to look like it was in the building) i tried
    "Bo_GBU12_LGB" createVehicle [1000, 1000, 1000];
    in the init field of a trigger but that didnt work. any ideas?

Posting Permissions

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