OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penfolde on 21 Feb 2005, 13:56:19

Title: make A.I take off from airport
Post by: penfolde on 21 Feb 2005, 13:56:19
Ello,

I saw somewhere how to make A.I aplains take off from runways,  It had to do with setting a trigger or waypoint and the Ai. use the taxi ways to take off.
This i think was for the nogova 1.22 map, but it might of been a general info for all airports.
The thing is i cannot find the page now, has anyone got the link?

Pen
Title: Re:make A.I take off from airport
Post by: macguba on 21 Feb 2005, 14:24:53
Put the plane on the taxiway, facing south.    Give it a move waypoint whereever on the island you want it to fly to.    That's it, the rest is automatic.   No triggers, unless you want to use a trigger to delay the takeoff until some event occurs.
Title: Re:make A.I take off from airport
Post by: penfolde on 21 Feb 2005, 14:29:33
aahhh,
Anuther question is that the second airport on the nogova v1.22, runs East to West, I'me trying to remember which way the runway runs,  is it  west to east?

Pen
Title: Re:make A.I take off from airport
Post by: macguba on 21 Feb 2005, 14:45:08
There is a maximum of one working runway per island.   On the official islands it always runs north-south, I don't know if that is required on user created islands but I suspect so.

If you want an aircraft to take off from a non-working runway, how you do it depends on whether the player will be watching.   If not, it is easy to fake.    If he is, it is hard to script (setVelocity is the key command) but could perhaps be done, if it hasn't been already.
Title: Re:make A.I take off from airport
Post by: penfolde on 21 Feb 2005, 15:12:26
ok, thx


Pen