PDA

View Full Version : Setting the height of a C130



dale0404
Jun 12 2009, 15:12
Gents, how do I set the height of a C130 to 700 metres above sea level so it travels from 1 waypoint to another at that height?

Cheers

Dale

[FRL]Myke
Jun 12 2009, 15:22
Try this:


name_of_plane flyinheight 700;

Tajin
Jun 12 2009, 15:26
That and maybe put this in the init, in case the plane should already start at the desired altitude:

this setposASL [getpos this select 0,getpos this select 1,700];this flyInHeight 700

dale0404
Jun 12 2009, 15:27
Cool, thank you.

wingtip
Jun 30 2009, 02:21
MYKE,
are you puttin that in the waypoint or the aircraft ?

MulleDK19
Jun 30 2009, 02:36
MYKE,
are you puttin that in the waypoint or the aircraft ?

Aircraft.

wingtip
Jun 30 2009, 10:04
yeah i finally figured that out but i'd like to find a way to add it to the waypoints so i can control the altitude of the aircraft at different locations.. will have to mess with it again after work :)

Cloughy
Jun 30 2009, 10:29
Do choppers and planes wtill have issuse with Waypoints when they are over 100m high?

Cheers
GC

GunsForSale
Jun 30 2009, 23:10
For some reason my plane like to take off the run away and turn in to the last WP instead of gaining alt and it ends up crashing in to the trees..how can i fix that? I even set the wp order

wp 0 is so it gains alt but it still manages to crash in to the the trees.
wp 1 is the real location i want it to fly by, and it just skips 0 and goes to 1..and crashes in to the trees again..sigh i don't know.

CannonousCrash
Sep 6 2011, 18:02
Sorry to re-ignite an old thread, but Im after the same thing. (better than creating a new one and getting flamed)

I want my F35 to fly at 100m ASL rather than AGL.

I did put this

this setposASL [getpos this select 0,getpos this select 1,100];this flyInHeight 100
in the waypoint activation field but soon as it triggered it cause the pilots to bail.

Ive check the waypoint route, and the terrain along the route is less than 50m.

Any ideas?

cobra4v320
Sep 6 2011, 23:58
Try this instead:

this setpos [getpos this select 0, getpos this select 1,100]; this flyInHeight 100

or this will work


this setPosASL [getPosASL this select 0, getPosASL this select 1, (getPosASL this select 2) + 100]

kylania
Sep 7 2011, 00:23
Until they add a flyInHeightASL you're stuck with flying above ground level unless you're constantly setPosASL'ing it.