OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Victor1234 on 26 Dec 2005, 03:05:45

Title: Getting Planes to Take Off/Land
Post by: Victor1234 on 26 Dec 2005, 03:05:45
I've experimented a bit with waypoints to try and get fixed-wing aircraft to take off, but no matter what I do with the waypoints, the planes veer off the runway and go forward at the same speed until they hit something/blow up. Since the answer to getting planes to take off is not in the waypoints(or at least, I'm convinced it isn't) I'm thinking that maybe I need a script....I haven't had any success in getting the AI to land aircraft either, so I think I need a script for that too, and browsing the scripts available in the Editing Depot, there's nothing to fit this description.

Thanks in advance,

Victor
Title: Re:Getting Planes to Take Off/Land
Post by: Planck on 26 Dec 2005, 04:25:36
You don't need any waypoints to make a plane take off.

Just place it on the taxiway facing south, it will taxi to the runway and take off automatically.

You only need to put a waypoint for where you want it to go afterwards.


Planck
Title: Re:Getting Planes to Take Off/Land
Post by: OrnelP on 30 Dec 2005, 04:38:59
I have also seen this, On the island of Nogova to the northern most island has a small
 
airfield, i put planes on it and they all turn to the right and flyinto the hanger and

explode.  Also the planes take off facing North.  As far as i understand they only take off

from designated airfields and only face north to take off and come in from the south,

there can only be one airfield with working AI to land planes though so i dont think that

small airfield is designated. -OrnelP    :-\
Title: Re:Getting Planes to Take Off/Land
Post by: Planck on 30 Dec 2005, 05:34:58
Correct, there can be only one working airfield per island.

The working airfield on Nogova is the one in the south-west corner.


Planck
Title: Re:Getting Planes to Take Off/Land
Post by: Ding on 30 Dec 2005, 11:07:50
i was doing some experimenting, and i found out that if you want a plane to take off imidiatly place it on a runway set it as flying, then put this setpos command in the init:

this setpos [(GetPos this select 0),(GetPos this select 1), 0.2]

and it starts flying and pulls up after a few seconds