OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trash Can Man on 02 Aug 2005, 19:13:34

Title: Altitude
Post by: Trash Can Man on 02 Aug 2005, 19:13:34
I want to start my plane out at 2000 this is what I used:

this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +2000]

but every time I go to test the mission, the plane heads for the deck...!  What am I doing wrong??
Title: Re:Altitude
Post by: Silencer on 02 Aug 2005, 19:21:32
You can use this:

NameofPlane FlyInHeight 2000

or

This FlyInHeight 2000
Title: Re:Altitude
Post by: bedges on 02 Aug 2005, 19:21:32
combine it with a flyinheight (http://www.ofpec.com/editors/comref.php?letter=F#flyInHeight) command, although if a plane will go that high by choice is another matter ;)
Title: Re:Altitude
Post by: Morglor9 on 02 Aug 2005, 19:21:45
Is the plane's special set to "Flying"?
Title: Re:Altitude
Post by: DBR_ONIX on 02 Aug 2005, 19:45:22
Use :
Code: [Select]
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +2000]; this FlyInHeight 2000Without the flyinheight, it's at 2000m, but it thinks it should be flying at the default, so heads down to 100 or whateveritis :P
- Ben
Title: Re:Altitude
Post by: Trash Can Man on 03 Aug 2005, 00:03:36
Use :
Code: [Select]
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +2000]; this FlyInHeight 2000Without the flyinheight, it's at 2000m, but it thinks it should be flying at the default, so heads down to 100 or whateveritis :P
- Ben

this works great! thanks guys!