Learn to make a human player interact with NPCs by being a follower or leader in a group, being able to set the formation of the group like in Arma or Bannerlord.
We'll also be improving a lot of scripts from the previous videos, making a better wander script, improving our visual debugging tools, and adding smarter AI behaviors where a leader will stop and wait for stragglers, and followers will run to catch up with the group.
Then we'll add some UI panels to manage the group that the player belongs to, changing formations, increasing / decreasing rank, and spawning new NPCs.
For the UI, I'm using Fantasy UI Borders by Kenney, check it out, an amazing asset and free to use: https://kenney.nl/assets/fantasy-ui-b...
Watch the Game AI Mastery Course playlist here:
• AI Groups And Formations in Unity C# - Gam...
Download project files and playable build here:
https://zeusgameassets.itch.io/ai-mas...
Support my work by buying me a coffee: https://ko-fi.com/zeusgameassets
Timestamps:
00:00 Introduction
00:25 Overview of our Game's Architecture so far and Improvements
03:59 NPC and Control prefabs
05:54 Improving NPC script and other NPC-related scripts
09:22 Making the AI Controller script
12:45 Improved NPCGroupMember script
15:39 Improved Visual Debugging Tools and Gizmos
18:28 Improved Wander behavior
21:28 Improved Formation Script and Circle Formation
22:27 Adding Cinemachine 3 and Input System 1.11
23:27 Making the Player Controller script
31:27 Making the UI
36:42 UI Demo