After my own hellish nightmare tring to get a chopper to Fly "Live" troops to an LZ, Unload them and leave "On a Deticated Server" Here it is.
Name it anything you want.sqs and launch it any way you want.
;Script By BuhBye
helo1 flyinheight 30
helo1 setvelocity [0,50,0]
helo1 setbehaviour "stealth"
helo1 domove getpos start1
helo1 setspeedmode "NORMAL"
#loop
?helo1 distance start1 < 300 : goto "land"
~0.5
goto "loop"
#land
helo1 setspeedmode "NORMAL"
helo1 land "GET OUT"
_height = getpos helo1 select 2
?_height < 1 : goto "drop"
~0.5
goto "land"
#drop
helo1 flyinheight 0
@({_x in helo1} count [w1,w2,w3,w4,w5] == 0)
helo1 domove getmarkerpos "gone1"
helo1 flyinheight 30
helo1 setspeedmode "FULL"
@helo1 distance gone1 < 200
deletevehicle helo1
exit
This was made with the chopper in flight at mission start. It flies to LZ, waits for you to get out and leaves. Once its out of hearing distance its deleted.
Change it, use it, screw it up. I dont care, its here for all to use!
A huge thanx to all that helped me out with this!
Spooner 2007-11-04: Rejected since it is much too specific (no configuration options, requiring an exact setup) and the functionality could very easily be replicated with a couple of synchronised waypoints in the editor.