Home   Help Search Login Register  

Author Topic: hold altitude  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkattack

  • Former Staff
  • ****
hold altitude
« on: 18 Aug 2007, 11:22:08 »
how can i maintain the altitude of a chopper ? for use with halo script.

i can start it at any hight eg 2000 ft  using

this setPos[ getPos this select 0,getPos this select 1,2000 ]

but how do i prevent it from wanting to return to a lower altitude (about 500ft)   ???

many thanx
"HOLY SARDINE" - see Shark-Attack meet his match

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: hold altitude
« Reply #1 on: 18 Aug 2007, 11:31:54 »
use da flyInHeight command :D shud work

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline sharkattack

  • Former Staff
  • ****
Re: hold altitude
« Reply #2 on: 18 Aug 2007, 12:11:13 »
tried that before posting ... didnt work
the chopper always looses height
"HOLY SARDINE" - see Shark-Attack meet his match

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: hold altitude
« Reply #3 on: 18 Aug 2007, 12:14:24 »
probably cuz he still didnt turn his engin on nd stuff... mebe u cud do a constant setpos loop... in functions dey work fast so it may b unnoticable :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: hold altitude
« Reply #4 on: 18 Aug 2007, 13:30:47 »
Place the chopper flying in the map, into its init field:
Code: [Select]
this flyinHeight 1500;this setPos[getPos this select 0,getPos this select 1,1500];this doMove getPos this

flyinheight has no effect if not followed by a move command. Also 1500m ~ 1550m seem be to maximum allowable altitudes for choppers in ArmA.

Offline sharkattack

  • Former Staff
  • ****
Re: hold altitude
« Reply #5 on: 18 Aug 2007, 13:34:31 »
thanx mate i will try it    :good:

edit
====
Works a treat  .. thanx a million


@LCD
engine was on ..  helo was flying ok  just wasnt happy at that altitude


« Last Edit: 18 Aug 2007, 13:36:07 by shark attack »
"HOLY SARDINE" - see Shark-Attack meet his match