Jump to content
Sign in to follow this  
Paddy086

C-130 Carpet bomb script

Recommended Posts

Hi I am using Nicolas C-130 Carpet bomb script LINK BELOW

http://www.armaholic.com/page.php?id=6554

This script works great but now i would like help editing it. The way this script works is by you flying the C-130 and using the menu bar to drop the bomb when you want to.

What i would like to do is have Ai fly the C-130 and drop the bombs at a triger point or at a certin car

Can any one help please thank you

any other script you might think of that involves airplains droping bombs at triger point will be greatly receved

Share this post


Link to post
Share on other sites

Find the script that it linked to Action menu, then fire that from a trigger on the map when the c130 flys through it.

If you want to drop a car or ammo crate, there is a BIS function that will do that. If you search this forum you will find the post that helped me.

Edit***

command from my map for the car drop,

[myc130,"BAF_Launchers"] call BIS_fnc_supplyDrop; hint "Supply drop. Look Up";

Where BAF_Launchers is the class name for an ammo crate. Just replace it with the class name of the car you want.

Cheers

GC

Edited by Cloughy

Share this post


Link to post
Share on other sites

I need help same question as before the script file is this

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

and the script used in the plain is this addaction ["Bombs away!", "carpet.sqf"];

i need help editing or showing me how i can get this script to work by flying over a waypoint i have tryed editing it my self but its no good

Share this post


Link to post
Share on other sites

If your trying to get the AI to drop the bombs just stick this in a waypoints on act box nul=[plane] execVM "carpet.sqf" with plane being the name of the plane.

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  

×