OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Horizon on 01 Sep 2005, 11:49:38

Title: Aircraft Landing (Planes)
Post by: Horizon on 01 Sep 2005, 11:49:38
I'm probably such an idiot but I can't get AI to land aircraft (planes). Helicopters are easy but no matter what I try I can't get addon planes to land. I am trying to build a mission on Nogova where an aircraft uses a "Cycle" to fly backwards and forwards between the two airports landing and then taking off again. Can anyone help me?

Thanks  :)
Title: Re:Aircraft Landing (Planes)
Post by: macguba on 01 Sep 2005, 14:04:02
It won't work because only the desert airport actually works as an airport.    The island one is just textures and objects.

Make a test missionette and give a plane a getout waypoint on the desert airport runway.   That should work.   Use a BIS plane first since many addons are faulty.
Title: Re:Aircraft Landing (Planes)
Post by: bored_onion on 01 Sep 2005, 14:08:00
using:

plane land "land"

also works fine for this. im wondering if it would be possible to create the illusion of the plane landing by setposing it down a trajectory. it would be laggy and tedious to do but it could work.
Title: Re:Aircraft Landing (Planes)
Post by: Horizon on 01 Sep 2005, 15:30:08
Could someone help me with the setposing landing? (or suggest another map with two working runways)
Title: Re:Aircraft Landing (Planes)
Post by: Pilot on 01 Sep 2005, 15:48:22
Quote
(or suggest another map with two working runways)
Unfortunately, OFP does not support two working runways.  This is a game limitation.

-Student Pilot
Title: Re:Aircraft Landing (Planes)
Post by: Horizon on 01 Sep 2005, 16:14:44
what about setposing landing?
Title: Re:Aircraft Landing (Planes)
Post by: bored_onion on 01 Sep 2005, 16:20:59
very complicated and time consuming. any solution like this would involve some trig (i think) and some pretty involved stuff (which im not in a position to preach about). unless this is an integral part of the mission i would suggest just having the plane circling and refueling every now and then or you could replace it with a chopper which can land anywhere.
Title: Re:Aircraft Landing (Planes)
Post by: UNN on 01 Sep 2005, 22:19:30
Quote
Could someone help me with the setposing landing? (or suggest another map with two working runways)

This will let you have as many working runways as you want.

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=6a4f31a7d5ebea166859a76aecd5ad9e;act=ST;f=4;t=45571 (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=6a4f31a7d5ebea166859a76aecd5ad9e;act=ST;f=4;t=45571)

Quote
it would be laggy and tedious to do but it could work.

It is, and it does :)
Title: Re:Aircraft Landing (Planes)
Post by: Horizon on 02 Sep 2005, 06:34:09
That's really helpful UNN :)

But can you help me with the aircraft that fly's back and forwards between the two airports?

I have managed to work out the basic commands for ATC but I still can't work out how to make the aircraft stop on the runway for 15sec then take off and fly to the other one. (Need it to repeat constantly)

Thanks so much for everyones support
Title: Re:Aircraft Landing (Planes)
Post by: bootneckofficer on 02 Sep 2005, 13:51:38
is there any way of getting a plane to land anywhere like in the middle of nowhere?

bootneckofficer
Title: Re:Aircraft Landing (Planes)
Post by: Dagon on 02 Sep 2005, 15:00:00
this setfuel 0

Oh, you mean LAND....
Title: Re:Aircraft Landing (Planes)
Post by: UNN on 03 Sep 2005, 22:39:31
Hi,

Quote
But can you help me with the aircraft that fly's back and forwards between the two airports?

There are a few ways to do it. But the two I think might be best, are ATC custom events or the ATC scripts called from Waypoints.

ATC Repeat Flight Script.noe
ATC Repeat Flight Waypoint.Noe

You can download the example mission here:

http://homepages.gotadsl.co.uk/~gssoft/ATCRepeatFlight.zip (http://homepages.gotadsl.co.uk/~gssoft/ATCRepeatFlight.zip)

I have had a few more ideas on how to make this easier to setup, I will add them in the next version. Along with some proper taxing routines.

Quote
is there any way of getting a plane to land anywhere like in the middle of nowhere?

If you use the ATC addon I linked to in the previous post, it's easy enough. Just place an Invisible runway, where you want to land. IDONTNO is working on a scripts that allow you to land without using any addons. Although I'm not sure when he will be releasing it.

Cheers
Title: Re:Aircraft Landing (Planes)
Post by: Raptorsaurus on 03 Sep 2005, 23:20:13
I made a script that makes a plane take off from anywhere (smooth ground or straight road required).  Now I am working on one that will make a plane land anywhere (on a road or smooth ground).  I will be submitting both to the editors depot when I am done (probably in a week or two).
Title: Re:Aircraft Landing (Planes)
Post by: UNN on 04 Sep 2005, 04:43:49
PhilCommando did one:

http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=41bc448cb9264fe0db946159164738d6;act=ST;f=7;t=45364 (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=41bc448cb9264fe0db946159164738d6;act=ST;f=7;t=45364)

Oh, and Denoir:

http://www.denoir.ma.cx/coc/AnnLander.zip (http://www.denoir.ma.cx/coc/AnnLander.zip)