AI Agent

public sealed class AIAgent : UnitLogicModule

Stores actual unit AI state, like its orders queue, AI enabled state, etc. This is the module used to give orders to a unit (move, attack, follow, etc) and to react to them.

You normally get it from a unit as unit.AI (or SelfUnit.AI, if you’re inside a unit module):

SelfUnit.AI.AddOrder(moveOrder);

The current orders queue is exposed as Orders (a List<Order>) — the order at index 0 is the currently active/executing one.