Jump to content
Sign in to follow this  
excruciator

helicopter height problem

Recommended Posts

Didn't know how else to discribe as title.

But my problem is that I want an Apache AH-64D circling around a city. But around the city the terrain is uneven, so it doens't stay on the same height.

It does if you look at the right corner, but the distance is met to the top of the terrain, is there a possibility to make that distance messure on the same height so my helicopter doesn't go up and down anymore ??

Thanks in advance.

Share this post


Link to post
Share on other sites

name the helo eg my_helo

in the "init" field of the helicopter put

my_helo flyInHeight 40;

40 is the height in meters the helo will fly

Share this post


Link to post
Share on other sites

Not really sure. Guess a script looping once a second and calculating the flyInHeight-height above sea level could work...

Say you want the helicopter to fly evenly at 200m above sea level. You could then do something like the following:

while {alive my_helo} do
{
   _setHeight = 200 - (getPosATL my_helo select 2);
   my_helo flyInHeight _setHeight;
   sleep 1;
};

dunno how even it'd be, but worth a shot.

Share this post


Link to post
Share on other sites

@Doodle: I know that one, but it measures between the surface and the helicopter, and not sealevel and helicopter.

@Inkompetent: I tried that code, too bad it doesn't work :(, it still goes up and down ;).

Though, thanks both for the help :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×