OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TAPNKEGS on 25 Aug 2002, 19:07:24

Title: AIRSTRIKES
Post by: TAPNKEGS on 25 Aug 2002, 19:07:24
     Anyone have any good links or SIMPLE commands to use for airstrikes. I have some jets that will be doing some low level runs and need the actual explosions and stuff for the strike.
   thanks for any advice
Title: Re:AIRSTRIKES
Post by: Gastovski on 25 Aug 2002, 23:08:35
Only problem with that mate is that the explosions from the bombs will knock the plane out of the air if it is low!!!

Otherwise you can make a a10 FLY IN AND DROP SOME lgb'S on a game logic...

Code: [Select]
_plane = a10
_target = target
#start
_distance = getdistance _target
_plane dotarget _target
?_distance<50:goto "dropbombs"
goto "start"
_plane dofire _target
exit

Should work but I can't check it at the mo...
Title: Re:AIRSTRIKES
Post by: Nasty Buttler on 27 Aug 2002, 15:17:05
Code:_plane = a10
_target = target
#start
_distance = getdistance _target
_plane dotarget _target
?_distance<50:goto "dropbombs"
goto "start"
_plane dofire _target
exit
 

u should put a pause in there or it will chew up all your cpu cycles

Code:_plane = a10
_target = target
#start
_distance = getdistance _target
_plane dotarget _target
~1
?_distance<70:goto "dropbombs"
goto "start"
_plane dofire _target
exit
 

i also increased the distance to aliviate the time delay
Title: Re:AIRSTRIKES
Post by: sniper_c1 on 30 Aug 2002, 20:53:43
You can also put the variables custmizable, instead of using defined names  ;)
Code:
_plane =  this select 0
_target = this select 1
#start
_distance = getdistance _target
_plane dotarget _target
~1
?_distance<70:goto "dropbombs"
goto "start"
_plane dofire _target
exit

That way he can put them on the Init line, making it more user friendly :)
Title: Re:AIRSTRIKES
Post by: sniper_c1 on 30 Aug 2002, 23:23:07
Oh and i missed the link :)
_plane =  this select 0
_target = this select 1
#start
_distance = getdistance _target
_plane dotarget _target
~1
?_distance<70:goto "dropbombs"
~1
goto "start"
#dropbombs
_plane dofire _target
exit

There that script should work :)
Title: Re:AIRSTRIKES
Post by: madmedic on 01 Sep 2002, 08:00:36
I think that Todlife Airstrike script is AWESOME, it acually lets the player specify targets to bomb, and call in an airstrike by a plane that is flying a holding pattern somewhere on the map.
And the plane lays down a nice trail of bombs on the area specified by the player.
Then you can call off the strike, and pick a new target,...Or let the bomber keep making runs till he is out of ordinance...
very cool ;)