Jump to content
Sign in to follow this  
will556

AI Air strike

Recommended Posts

I have made a mission where upon activation 3 AV8B bombers will fly over and airstrike an area, however at the moment i only have them on a destroy waypoint, and when they flyover they do not attack, could someone please tell me how i can get them to fly over and drop thier bombs, and then to come back and pick off any left over enemies.

Share this post


Link to post
Share on other sites

One cheat way to do it would be various triggers linked to IEDs. As the jets fly over various IEDS go off around the city to simulate a huge bombing.

Could use this in the trigger line

"AIR" counttype thislist > 0 (assuming you don't have other air units in the area)

Edited by rexehuk

Share this post


Link to post
Share on other sites

Just an idea. But it might actually work aswell

If you want the planes to hit specific units or targets. You can do the following.

Create a trigger at each target and make sure that the planes fly above it.

Put the trigger so that they activate once only.

And then if they have to hit for instance the following targets in the area.

a tank called : t1

another tank called : t2

a infantry squad called : i3

and in a second area ( another trigger ) another tank

called t4

then you could write a sqf with functions to create bombs above them.

So it would look like this

//functions for the target

targetarea1 = {

private ["_target1", "_target2", "_target3"];

_target1 = "Bo_GBU12_LGB" createVehicle [(getPos t1 select 0), (getPos t1 select 1), 50];

_target2 = "Bo_GBU12_LGB" createVehicle [(getPos t2 select 0), (getPos t2 select 1), 50];

_target3 = "Bo_GBU12_LGB" createVehicle [(getPos i3 select 0), (getPos i3 select 1), 50];

};

//Next target area

targetarea2 = {

private ["_target4"];

_target 4 = "Bo_GBU12_LGB" createVehicle [(getPos t4 select 0), (getPos t4 select 1), 50];

};

save it as functions.sqf and execVM it inside of the init.sqf

afterwards put into each trigger the function that belongs to the targets

So it would be like

[] call targetarea1;

[] call targetarea2;

This will make it look like a called in airstrike on specific targets you can also add some random stuff into the targets location so that it wont be to perfect hits on target.

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  

×