Jump to content
Sign in to follow this  
-RIP- Luhgnut

Cluster Bomb run won't work from trigger or waypoint

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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";

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×