OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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...
_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...
-
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
-
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 :)
-
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 :)
-
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 ;)