Confederate AI

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
The Unity editor with Confederate AI agents in the Playground scene and the Confederate AI editor windows
Agents in the Playground scene, with the Character Editor, Debugger, Waypoint Manager, AI Creator and Cleaner windows.

Two factions

Allies and enemies find each other by sight distance, pick the nearest target and attack; enemies go after the player too.

Patrols and paths

Random wandering, set waypoints, or a path of linked waypoints with branches, all on Unity's NavMesh.

Melee combat

Health, stamina and regeneration, damage, levels up to a maximum, attack animations, blood, ragdoll or animated deaths.

Companions and spawners

Allies can follow the player when asked; spawners create agents (and followers) and can respawn them.

Confederate AI's editor windows: Character Editor, Character Debugger, Waypoint Manager, AI Creator and Character Cleaner
Editor tools: set up characters, debug their settings, build waypoint paths, create controllers and spawners, or strip the AI off again.

Set it up

  1. GameController: tag it "GameController", add AIControllerCore, and give it two children with FauxTarget (faction 0 = ally, 1 = enemy).
  2. Each agent: add AICore, a child with AIFollowControl, and a ragdoll.
  3. Player: a Character Controller tagged "Player" with PlayerCore.
  4. Spawner: 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.

Used in

Araknia and Nystylla: Girls of Maluxzka.

QR code to this page