Home   Help Search Login Register  

Author Topic: get height of chopper  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
get height of chopper
« on: 08 Jul 2005, 12:57:06 »
how can i get the height (roughly) of the chopper to the ground below it i tried something like

Code: [Select]
_heightchop = this select 2
? _heightchop <= 10 : goto "next"

#next
? alive unit1 : unit1 assignascargo blackhawk

im having trouble with getting units to bopard in the chopper there commander tells them to bord but half the squad just stands outside saying 'Negative' and wont get in for somereason there penty room for them to fit they can easily get to it but just dont want to so i thought assighning them to the chopper

if theres an easyier way i would love to hear it

NOTE - that code just a very rough idea cause im at school and cant rint exactly what i put but thats close enough to what i can remember

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:get height of chopper
« Reply #1 on: 08 Jul 2005, 13:13:01 »
The loop's no good - whether _heightchop is greater or smaller than 10 the script will still get to #next.  Try this and look up the differences:

Code: [Select]
#loop
~5
_heightchop = (GetPos mychopper) select 2
?(_heightchop > 10): goto "loop"

?(alive unit1): unit1 assignascargo blackhawk; [unit1] OrderGetIn true

exit

If it's AI boarding the chopper you may need to have another look at your waypoints and synchronisations before going too far down the script route.