Skip to content

See a full, end to end implementation of an enemy AI with 4 attacks using a Behavior Tree framework, AI Tree.

License

Notifications You must be signed in to change notification settings

llamacademy/ai-series-part-48

Repository files navigation

Enemy AI Behavior Tree

In this tutorial repository and accompanying video you can see a full, end to end implementation of an enemy AI with 4 attacks using a Behavior Tree framework, AI Tree.

As of the Navigation Components 1.1.3, NavMesh.CalculateTriangulation() does not properly generate NavMeshTriangulation.areas per Navigation Area. Showing navigation areas therefore only works if you build using the legacy system, which does not support different navigation meshes per NavMeshAgent type.

Youtube Tutorial

Quickstart

This repo uses AI Tree as the Behavior Tree framework. Since this is a paid asset it cannot be included. It also uses a Quirky Llama model which is less important, but the animation names that are played will need to be updated to whatever animations you choose to use. If you do not own at least AI Tree, you will have to reconstruct the Behavior Tree and modify the code to match with your behavior tree framework of choice.

  1. Import AI Tree and Quirky Llama (or replace llama with your 3d model)
  2. Import Unity Particle Pack (free)
  3. Click play!

The package manifest includes Navigation Components already.

Sponsors

This tutorial is Sponsored by Southern New Hampshire University. If you're interested in leveling up your gamedev skillset, consider getting an affordable, accredited degree in Computer Science or Game Design & Development from SNHU. You can go to https://snhu.edu/llamacademy to see what the current average annual salary for a game developer programmer is and learn how you can get started!

Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to the LlamAcademy Patreon Page, join as a YouTube Member, or even become a GitHub Sponsor to show your support.

Phenomenal Supporter Tier

  • Andrew Bowen
  • YOUR NAME HERE!

Tremendous Supporter Tier

  • Bruno Bozic
  • YOUR NAME HERE!

Awesome Supporter Tier

  • AudemKay
  • Matt Parkin
  • Ivan
  • Reulan
  • Iffy Obelus
  • SolarInt
  • Perry
  • YOUR NAME HERE!

Supporters

  • Trey Briggs
  • Matt Sponholz
  • Dr Bash
  • Tarik
  • Sean
  • ag10g
  • Elijah Singer
  • Lurking Ninja
  • Josh Meyer
  • Ewald Schulte
  • Dom C
  • Andrew Allbright
  • AudemKay
  • Claduiu Barsan-Pipu
  • Ben
  • Xuul
  • Christian Van Sttenwijk
  • Michael Creel
  • Joseph Janosko
  • Joao Henrique Machado Silva
  • YOUR NAME HERE!

Super Thanks

  • Patrizio Veglia
  • Travis Blue

Other Projects

Interested in other Topics in Unity?

Requirements

  • Requires Unity 2022.3 LTS or higher.
  • Universal Render Pipeline

Disclaimers

Some links in this readme may contain affiliate links which, at the time of purchase, at no additional cost to you, gives me a small portion of the purchase.