Skip to content

StateMachines

Defined in: ai/fsm/FsmPlugin.ts:114

Resource for game code to reach an agent’s blackboard / current state.

new StateMachines(states): StateMachines

Defined in: ai/fsm/FsmPlugin.ts:115

Map<number, AgentState>

StateMachines

blackboard(entity): Blackboard

Defined in: ai/fsm/FsmPlugin.ts:117

number

Blackboard


fire(entity, trigger): void

Defined in: ai/fsm/FsmPlugin.ts:122

Fire a one-shot trigger consumed by the agent’s next enabled transition.

number

string

void


state(entity): string | null

Defined in: ai/fsm/FsmPlugin.ts:127

The agent’s active state name, or null before its first tick.

number

string | null