Logic-based 3D AI for Unity
Allies and enemies that patrol, spot each other, fight, follow you and die in a heap. Plain C# on Unity's NavMesh, no plug-ins.
Website: https://cursedprograms.github.io/ConfederateAI/ · itch.io: https://cursed-entertainment.itch.io/confederate-ai
- Two factions: allies and enemies find each other within their sight distance, go for the nearest target and attack; enemies go after the player too.
- Movement: random wandering, set waypoints, or a path of linked waypoints (with branches), all on the NavMesh, walking or running.
- Melee combat: health, stamina and regeneration, damage, levels (up to a maximum level), attack animations and blood.
- Deaths: ragdoll or animated.
- Companions: walk up to an ally and press Action to have them follow you; Reset sends them back.
- Spawners: spawn agents (or followers), optionally respawning them.
- Editor tools: Character Editor, Character Debugger, Waypoint Manager, AI Creator (characters, spawners, the controller) and Character Cleaner (removes the AI again).
- Use URP (Universal Render Pipeline) and the new Input System.
- Have a blood pool and a blood spatter particle system.
- Create the UI elements in world space and make them children of their AI (the player's can sit on the camera).
- Double-check every field that needs a GameObject.
The project is a Unity 2022.3 project; open the folder in Unity Hub.
- Tag: "GameController"
- Attach:
AIControllerCore.cs - Create 2 children (one per faction):
- Attach:
FauxTarget.cs - Set Faction: 0 (Ally), 1 (Enemy)
- Attach:
- Attach:
AICore.cs - Create a child object:
- Attach:
AIFollowControl.cs
- Attach:
- Create a ragdoll
- Tag: "Player"
- Attach:
PlayerCore.cs
- Attach:
AISpawner.cs
© Cursed Entertainment 2026

