Home   Help Search Login Register  

Author Topic: Choppers altitude  (Read 514 times)

0 Members and 1 Guest are viewing this topic.

Dane

  • Guest
Choppers altitude
« on: 19 Jul 2005, 10:06:50 »
I need a certain script activated when a certain choppers altitude equals or is below 1 meter on ground level.

Any ideas :-*

Thanks.
« Last Edit: 19 Jul 2005, 10:11:09 by Dane »

qqqqqq

  • Guest
Re:Choppers altitude
« Reply #1 on: 19 Jul 2005, 10:11:08 »
Something like

getpos choppername select 2 <= 1

Dane

  • Guest
Re:Choppers altitude
« Reply #2 on: 19 Jul 2005, 10:13:40 »
Thanks. I'll try that right now.

Dane

  • Guest
Re:Choppers altitude
« Reply #3 on: 19 Jul 2005, 10:37:52 »
My little heightcheck.sqs now looks like this:

_chopy = _this select 0

#loop
?(getpos _chopy select 2 <= 1) : goto "next"
~1
goto "loop"

#next
[_chopy] exec "chops\trythat.sqs"
exit

.. and it works perfectly :D

Thanks alot :-*