Jump to content
Sign in to follow this  
matteo1944

bombing run

Recommended Posts

Is there a way of making an airplane to drop bombs at specific place but without laser guidance?

Share this post


Link to post
Share on other sites

hi,

The easiest way is to use invisible targets like Lester's invisible targets. (recommended)

You can also use a script:

[plane1,target1,0.5] exec "drop.sqs"

;*************************************************
;Drop Bomb Script by Nikiller v0.9b
;Force an plane to drop his bombs
;Note: place a game logic named server
;contact: nikillerofp@hotmail.fr
;[unitName,TargetName,Delay] exec "scriptName.sqs"
;example: [plane1,target1,1] exec "scriptName.sqs"
;*************************************************

_u = _this select 0
_t = _this select 1
_d = _this select 2

? !(local _u): exit

{_u disableAI _x} forEach ["TARGET","AUTOTARGET"]
_u flyInHeight 100
_u setBehaviour "CARELESS"
_u setCombatMode "BLUE"
_u setSpeedMode "LIMITED"
_u move (getPos _t)

#l1
~0.5
? !(alive _u): goto "ende"
? _u distance _t>400: goto "l1"

_i=0
_j=8

#l2
? !(alive _u): goto "ende"
_u fire "LaserGuidedBombLauncher"
_i=_i+1
~_d
? _j>_i: goto "l2"

#ende

exit

Here's a demo to show how it works DEMO LINK

cya.

Nikiller.

Edited by Nikiller
added demo link

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  

×