This script works because I tested it myself, pretty damn sweet to se the mg on the uh-60 actually fire for once
. Theres one thing that needs to be change IMO, and that is the movement... the helo just hovers at one spot until the unit is dead and the moves to the next... it would be cool to make it hover in circles around the target. Maby I'll do that later
And sorry for the late reply
... (wus watching a movie I dl'd
)
heres the script...
=====================================================
You need a helicopter named
helo and a trigger named
trigg.
Set the trigger up to be activated by the anemy, and you can make the trigg any type you want...
in the trigg's
on activation field put
[] exec "killer.sqs"then make a text file named killer.sqs
=====================================================
***************** killer.sqs ***************************
=====================================================
copy the following code into the text file...
=====================================================
heli setbehaviour "careless"
heli setspeedmode "limited"
_loons = list trig
"helo reveal _x" foreach _loons
~0.5
#Update
_loonleft = count _loons
~1
? (_loonleft == 0) : goto "Done"
_dude = _loons select 0
heli domove [(getpos _dude select 0),(getpos _dude select 1)+20]
~1
heli flyinheight 10
heli dotarget _dude
~5
heli dofire _dude
~2
heli domove [(getpos _dude select 0),(getpos _dude select 1)+20]
_health = getDammage _dude
@ _health == 0
_loonleft = loonleft_ - 1
_loons = list trig
goto "Update"
#Done
exit
=====================================================
cheers m8
[edit]
Any probs or q's please ask. If you don't get it to work I could host a samplemission for you. ;D
oh and the fly in height is to alter the flight-height in meters, to help the nearly blind gunner spot his enemies... change the value (10) if the helo crashes or you culd even try to remove it if nessecary :-X
[edit#2]
oh and remember to make the trigger as large as you need the area of available CloseAirSupport to be, I.e. the HOSTILE area...
And one final thing, it isn't possible to setpos or camCreate a trigger is it
If that was possible, you could make a smaller trigg, and setPos it with onMapSingleClick command... so you could divert the chopper to ANY hostile spot on the map just by clickin' on it
... But for now just place the triggers over desiered hotSpots (yes you can make more than one ;D) and makem' radio triggers so you can activate them when desired