Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   Making AI Land (http://forum.fulqrumpublishing.com/showthread.php?t=30935)

5./JG27.Farber 04-05-2012 08:41 PM

Making AI Land
 
Does anyone know the trick to making the AI land? On some bases they will land but go off the end of the runway and crash. Othertimes they just circle the runway forever... Is it just a case of some runways will allow AI to land and others wont or what?

If anyone has an example of this working consistantly could you send me the mission please.

Thanks.

FG28_Kodiak 04-05-2012 09:15 PM

the problem it the task of the airgroup. If the airgroup task is RETURN, the aircrafts often circle around their destination airfield, till running out of fuel. The task will become RETURN if a Aircraft is damaged or low on fuel. There is no way to change the RETURN-State into LANDING, so you must take care that all Aircrafts get Home before they 'decide' to do it automatically.

Here you will find a script example
http://forum.1cpublishing.eu/showpos...29&postcount=3
take a look on OnTickGame, i send the Airgroup home at a Fuellevel at 150 (Bf109 has a value of 300 on 100% Fuel so it's the half).

Lets hope this behavior is fixed in one of the next patches :rolleyes:

5./JG27.Farber 04-05-2012 09:59 PM

Hmm Im not even talking about anything so complicated. I just want them to go to the last way point and land. Like in old IL2.

5./JG27.Farber 04-05-2012 10:21 PM

Nevermind - I got it. This is how I did it.

Place a normal flight at 500m's altitutde near the airfield. Place a landing way point on the plane icon on the airstrip. Ensure the landing waypoints speed is 0.

Larger aircraft like He111 will try and park in the small blast pens but will not explode.

FG28_Kodiak 04-06-2012 04:04 AM

By my tests this works not very often, unfortunately. If the Task is RETURN all waypoints except the last are ignored, so the problem still exist. But i will make more tests, may be you find the holy grail of waypoint handling :grin:

hc_wolf 04-06-2012 05:11 AM

Quote:

Originally Posted by FG28_Kodiak (Post 406188)
By my tests this works not very often, unfortunately. If the Task is RETURN all waypoints except the last are ignored, so the problem still exist. But i will make more tests, may be you find the holy grail of waypoint handling :grin:

Never fails for me.
Set normal fly waypoint then
Set waypoint landing not to far from runnway.
Set altitude between 0 and 300
Set speed to 0 but it will default back to 169

They hit the landing waypoint and the first peels off to half circle and land, the others fly on a little circle behind first and all follow in.

I get no fly rounds like kodiak says. I did get that in scripting a while ago and fixed it.

FG28_Kodiak 04-06-2012 07:20 AM

If the task is RETURN? The Task get in RETURN state if the AI gets out of fuel or is damaged and automatically return to base. If this not the case (the task is LANDING) all work fine for me, also. So i will make more tests :rolleyes:

hc_wolf 04-06-2012 07:36 AM

You thought about a passthrough near airfield or along returnpath to switch to landing

Just an idea

Or have the passthrough around the base 2000m so when AI return to the area threre is a time trigger to switch them to land also

Osprey 04-06-2012 08:09 AM

Now you guys are making me check my maps again to check if they do land because I just sent the AI in the direction of the base as a normal and then did a normal landing, just like 1946, and no problem.

salmo 04-06-2012 08:13 AM

Quote:

Originally Posted by FG28_Kodiak (Post 406151)
the problem it the task of the airgroup. If the airgroup task is RETURN, the aircrafts often circle around their destination airfield, till running out of fuel. The task will become RETURN if a Aircraft is damaged or low on fuel. There is no way to change the RETURN-State into LANDING, so you must take care that all Aircrafts get Home before they 'decide' to do it automatically.

Here you will find a script example
http://forum.1cpublishing.eu/showpos...29&postcount=3
take a look on OnTickGame, i send the Airgroup home at a Fuellevel at 150 (Bf109 has a value of 300 on 100% Fuel so it's the half).

Lets hope this behavior is fixed in one of the next patches :rolleyes:

After more testing, if this is indeed the case, then we probably need to report it as a bug becuase damaged or out of fuel aircraft should not just 'RETURN', they should RETURN - then LAND at their HB, or attempt to land at nearest friendly airfield if they can't make their HB.


All times are GMT. The time now is 03:15 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.