Advertisement
7heSama

AGDG AI tips

Jun 9th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. >How the hell did you do the AI? especially the part of when they decide where to fly to? I stopped doing my space fanta spray simulator because i couldn't figure that shit out
  2. I'm no AI guy, so my approach might be completely full of shit and/or horrifically limited.
  3.  
  4. I have three levels of AI. Mission, behavior, and action. The mission is something like patrol or defend. It's the meta of what the AI wants to do, what they need to do to other ships out there, etc. For example fighters on a patrol mission will scan for enemies, if there are no enemies they'll fly idly around, if there are, start dogfighting with fighters or just run away from capitals. Missions are the WHY an AI does anything.
  5.  
  6. Behaviors are the one level below that. An example of a behavior is dogfight, where the AI maneuvers around based on where the enemy is, how much fire they're taking, and prioritizes targeting based on enemies they can dogfight the best. Behaviors are the WHAT the AI does during a mission.
  7.  
  8. Actions are the lowest level and are the HOW an AI does something. Examples of actions are TurnTowardsTarget which makes the AI manipulate their inputs to fly the ship towards a point or a ship. The AI flies their ship using the exact same controls as the player does. The evade behavior will fly evasively either towards or away a ship. There's also weapons management stuff like pulling the trigger and switching to a specific weapon.
  9.  
  10. That's a really high level overview, I don't know how much that helps you.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement