Search Unity

Tutorial - Implementing a Basic State Machine For Our AI | AI Series Part 11

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Apr 20, 2021.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    268


    In this tutorial I go over how to implement a basic state machine to control the AI Behavior. Instead of just always following the player, the Agents can now be configured to idly walk around, patrol random sets of points on the NavMesh, or chase the player if they have line of sight. On top of all of that! All these will be configurable in our EnemyScriptableObject so the states can be easily customized per Agent. As always, all code from this video is available on GitHub: https://github.com/llamacademy/ai-series-part-11 Remember, that repo is where this tutorial ENDS! If you want to follow along, check out https://github.com/llamacademy/ai-series-part-10 - that's were this tutorial STARTS!