helicopter name = heli1
script.sqs
#loopy
~1
? (getpos heli1 select 2) > 0 : goto "Loopy"
~2
titleText ["The chopper is successfully landed!", "PLAIN"]
player sideChat "We have landed the choppa right here! Yay!"
By using the above script, you can only use it for the helicopter named heli1.
A message and a titletext will appear when it is at or below height 0.
And it is NOT sea level, just the ground level right below the helicopter.
(For see level, a gamelogic might be needed)
snippet.sqs
_heli = _this select 0
_hei = _this select 1
_delay = _this select 2
_code = _this select 3
#Loop
~1
? (getpos _heli select 2) > _hei : goto "Loop"
~_delay
call _code
exit
With this one, you can check for any helicopter or even other vehicles.
Format :
[ heliname, height, delay, code ] exec "snippet.sqs"
Sample :
[ heli1, 0, 3, {player sideChat "Yay we are at 0 height!"}] exec "snippet.sqs"
Script will display radio message 3 s after heli1 has reached height 0.
Always enclose code with { and }
Examples : { man1 moveingunner heli1 } / { chopLanded = TRUE } / {hint "Choppa is landed"}
Hope this helps pal.
Regards,
Haroon1992