Hi,
I've made this script that works well, but I want to see if you guys can help me make it better.
Here is the script
helo1 flyinheight 10
helo1 move getmarkerpos "way1"
@unitready helo1
helo1 setspeedmode "limited"
helo1 move getpos helipad
helo1 flyinheight 4
@unitready helo1
@(getpos transport select 2) < 5
~8
p1 exec "alphaexit.sqs"
@Not (p1 in helo1) AND not (p2 in helo1) AND not (p3 in helo1)
helo1 move getmarkerpos "way2"
Exit
Now what happends is that the helicopter helo1 comes in really low, hovers about 4 m above the ground while the soldiers jump out and then it flies off to another waypoint.
What I don't like is the need to wait 8 seconds before the soldiers jump. I had to add this because the soldiers were jumping out before the helo reached the invisible helipad, and this being a coastal insertion they started jumping into the water.
I tried adding a line to detect when the distance between the helipad and the helicopter was less than 5 meters but that didn't work.
Does anyone know of a command I can use to make the soldiers wait until the helo is directly above the helipad rather than just in the approximate area before jumping out.
Thanks for any help,
Ronin