Jump to content

Forcing AI to land


Go to solution Solved by SUNTSAG,

Recommended Posts

Posted

Hi there!

I am currently making a demo featuring a formation of aircraft, including the F-15C, F-22A, and F-35A. I have the AI to start by going to an orbiting waypoint while i do maneuvers, forming up with me when I enter a specific trigger zone, and executing aerobatics (military turn and climb to break out like the blue angels) when I enter into another different zone.

whats my problem?

well, when the AI breaks apart from the formation from the aerobatics, I hope for them to proceed to land, however, they tend to link back with my aircraft and form up again. I have it set for AI Task Push to Switch to the landing waypoint when I enter another zone, but it appears to ignore that. That is when things get bad. I have made this thread so you can make any suggestions that could help.

Thanks a lot!

  • 1 month later...
Posted (edited)

Flags tend to confuse me. Can I use any number for the flag? Do I have it set to “off” or “on”?

Edited by GMSavage
Posted
8 hours ago, GMSavage said:

Flags tend to confuse me. Can I use any number for the flag? Do I have it set to “off” or “on”?

 

Flags are just variable names. These variables are either Boolean (true/false or on/off) or an integer (a number value)

its much easier if you give then a name I.e. KILL_COUNT or IS_COALTION_FEET_DRY

You can use upper or lowercase but it’s helpful to have a style that differentiates them from Trigger Zone names and Group Names - hence I use all caps. 
 

Either way, stop using numbers that don’t mean anything. It makes complicated conditions much easier to read and debug. 

Posted

I took your advice, and it worked! The AI broke apart when I entered the zone. However, they only finished 1/2 of my expectations. They did break off, but did not land at the designated airfield. I have all but one airfields red so they can’t land at them, and when I do that, they fly in the air until they run out of gas and fall out of the sky. I have the waypoint set to land at Nellis, the AFB in the Nevada map. What can I do?

Posted
14 hours ago, GMSavage said:

I took your advice, and it worked! The AI broke apart when I entered the zone. However, they only finished 1/2 of my expectations. They did break off, but did not land at the designated airfield. I have all but one airfields red so they can’t land at them, and when I do that, they fly in the air until they run out of gas and fall out of the sky. I have the waypoint set to land at Nellis, the AFB in the Nevada map. What can I do?

1. Is their final waypoint to land at that field? 

2. Have you tried an Advanced Waypoint Trigger of 'Go To Waypoint <number' and set the number to the landing waypoint? Then push that task (or set it) when you want them to RTB?

3. Can the airfield actually support that aircraft type landing there? I ask because there are multiple maps that refused to allow certain aircraft (irrespective of coalition) to land at perfectly valid airfields because the devs screwed up the meta data and it's never been addressed. Several of them are in Nevada...

4. if you want them to fly all their waypoints and NEVER land until you actively PUSH that advanced waypoint action trigger, then you need to set their penultimate waypoint to have an action to go to a waypoint that means it will skip the last waypoint and go to a previous one.

Posted (edited)
On 4/3/2023 at 7:59 AM, Elphaba said:

1. Is their final waypoint to land at that field? 

2. Have you tried an Advanced Waypoint Trigger of 'Go To Waypoint <number' and set the number to the landing waypoint? Then push that task (or set it) when you want them to RTB?

3. Can the airfield actually support that aircraft type landing there? I ask because there are multiple maps that refused to allow certain aircraft (irrespective of coalition) to land at perfectly valid airfields because the devs screwed up the meta data and it's never been addressed. Several of them are in Nevada...

4. if you want them to fly all their waypoints and NEVER land until you actively PUSH that advanced waypoint action trigger, then you need to set their penultimate waypoint to have an action to go to a waypoint that means it will skip the last waypoint and go to a previous one.

1. Yes. WP3 (final waypoint) is set to land at Nellis

2. Yes, when the flag is on, they should break off, and I have the ‘switch waypoint’ command set so they return to Nellis AFB

3. I’m not sure. I’m using Nellis AFB in the Nevada map.

4. …what?

Edited by GMSavage
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...