How would you go about creating AI for planes that can race each other and shoot enemies?

I’d like to create a game like this – a plane race where player races against AI players who shoot at the player and each other as they race along. But where would you begin making something like this, what keywords should be researched? Thanks.

What part are you having trouble with?

1 Like

“boids”. “follow waypoint”. “collision avoidance”

Maybe “ai decision trees”. Or just be direct and “racing ai”.

Boids will get you 90% towards your goal, I think.

1 Like

Just the concept of something ‘intelligently’ racing around the track and shooting enemies that come within its radius. I just don’t know where to begin.

racing game unity tutorial - Google Search

You owe me five dollars.

Just go one step at a time.

1 Like

A basic ai would look like this:

  • While not waypoint reached, head to waypoint, if reached, switch to the next one.
  • Try to avoid crashing.
  • If enemy is ahead, then shoot.
  • If enemy is behind, drop bomb.
  • If enemy is to the left/right, ram.
  • Wobble around a bit to create illusion of intelligent behvioar.
  • Use difficulty tables to adjust steering behavior and reaction speed.
  • Yell random obscenities at the player using prepared list of approved insults.

Basically, make a plane that can fly through a race course ALONE. Then look into boids.

1 Like