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
-
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??
-
You can use this:
NameofPlane FlyInHeight 2000
or
This FlyInHeight 2000
-
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 ;)
-
Is the plane's special set to "Flying"?
-
Use :
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
-
Use :
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!