![]() |
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. |
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: |
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.
|
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. |
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:
|
Quote:
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. |
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:
|
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 |
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.
|
Quote:
|
Indeed, please raise it. And also, if they are the leader then another member of the flight continue the mission. Presently they follow the leader even when he is massively damaged.
But, they are working on AI, perhaps better to see what is produced? |
Yep, i waiting for the next patch, if the problem still exist i make a bug track.
I made test with script defined Waypoints and without, in both cases the error occur if one of the planes was damaged or running out of fuel. The plane did not land and circled around the airfield until fuel was empty. May be only my game is affected :) |
AI is really a mess. I'm not talking about air combat stuff but take-off, landing and player interaction is really a mess.
|
Da rennst du bei mir offene Türen ein. :rolleyes:
|
It seems the AI try to keep within a percentile of the speed at the waypoint. So the 2nd to last waypoint must be near the airfield and the last waypoint, the speed must be 0. (the speed will snap to 180) Altitude I did not set on the landing waypoint so it doesnt seem to matter. I wonder if the AI try to be in a certain perctile of the Altitude also.
I tried this with 9 He111 at two different bases in the FMB. Would be good to try on dedi server. |
Quote:
I agree with other comments about waiting for patch until we can lodge any AI bug reports. As soon as the patch comes out I'm sure we'll all be wanting to stress test the Ai logic. |
Yeah wait for patch. I like just as the AI touch down, if you strafe them, they power back up and take off.
|
Here are three groups landing at three different airfields. All aircraft land, taxi and park without fail. I even make the 9 Stuka attack a target just before landing. I dont know how to make attachments here but you can always copy this code into notepad and name it landingtest.mis and play it for yourself. I have not run this on a dedicated server yet but Im confident it would still work.
Now all I need to do is get the Suka working right with dive bombing. Code:
[PARTS] |
Farber, for dive bombing simply set the waypoint just past the target since they fly over it, half roll and dive. The exit needs to be a 180 degree turn from the incoming path and much lower altitude (500m is fine). The AI will not dive bomb from lower than 3km.
Also, make sure you use the correct bomb and matching fuse set for delay with dive bombing when arming the AI or they won't drop it. |
Just tried it, they showere the bombs first then dive on target.
Can you show me a working example? |
Never mind I cracked it. Its differnet than old IL2.
1st waypoint 3500m's. 2nd the 500m's beypnd the target. This makes them start the dive. 3rd Attack target. In front of the 1st waypoint but behind the 2nd 500m's (180 heading change from first waypoints.) 4th roll out. 500m's Ive changed in the mission example for landing, you can see for yourself. |
I'm not sure what you needed to do, but if you check Ventnor, the Ju88's dive bomb successfully.
Old IL2 never needed 3km+, you just set a target and away they went. |
Both work in dedicated server. :-P
|
The Ju88 should do (historical) a 60° Dive (maximum) and not a 90° like a Stuka. Had anyone success with the shallow dive parameter? Not working for me correctly.
|
No I couldn't get that working Kodiak. On the Ventnor raid on August 12th 1940 the Ju88's attacked using a shallow dive but in game I couldn't get them to do it and had to resort to a dive bomb.
|
This is my next task Kodiak. I will have a play around and try and find out.
|
How about this:
Code:
[PARTS] |
All times are GMT. The time now is 06:54 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.