Two factions
Allies and enemies find each other by sight distance, pick the nearest target and attack; enemies go after the player too.
Logic-based 3D AI for Unity: allies and enemies that patrol, spot each other, fight, follow you and die in a heap. No plug-ins, just C# on the NavMesh.
GET IT ON GITHUB ITCH.IO
Allies and enemies find each other by sight distance, pick the nearest target and attack; enemies go after the player too.
Random wandering, set waypoints, or a path of linked waypoints with branches, all on Unity's NavMesh.
Health, stamina and regeneration, damage, levels up to a maximum, attack animations, blood, ragdoll or animated deaths.
Allies can follow the player when asked; spawners create agents (and followers) and can respawn them.
AIControllerCore, and give it two children with FauxTarget (faction 0 = ally, 1 = enemy).AICore, a child with AIFollowControl, and a ragdoll.PlayerCore.AISpawner.Needs URP, the new Input System, a blood pool and blood spatter particle system, and world-space UI for each agent. Built with Unity 2022.3.