Skip to content

API Interface ActionEvent

github-actions[bot] edited this page Nov 27, 2026 · 2 revisions

Interface: ActionEvent

Defined in: src/engine/input/actions.ts:340

One action phase change this frame (ActionEvents): a local player's, from the evaluator, or a networked pawn's, derived from the tick's phase flags when a server writes a client's actions onto it (ADR 0337).

Properties

action

readonly action: string;

Defined in: src/engine/input/actions.ts:348


index

readonly index: number;

Defined in: src/engine/input/actions.ts:346

The local player's index (on a server, the index of the client's local player driving the pawn).


node

readonly node: GameObject;

Defined in: src/engine/input/actions.ts:344

The node whose action set changed: the local player's node, or the server's pawn.


phase

readonly phase: ActionEventPhase;

Defined in: src/engine/input/actions.ts:349


player

readonly player: GameObject;

Defined in: src/engine/input/actions.ts:342

The local player's node; for a pawn a network server drives, the owning connection's node (net.Connection).


set

readonly set: ActionSetDef;

Defined in: src/engine/input/actions.ts:347


value

readonly value: number;

Defined in: src/engine/input/actions.ts:351

The action's value then (a vector's length; x, y, z hold its components).


x

readonly x: number;

Defined in: src/engine/input/actions.ts:352


y

readonly y: number;

Defined in: src/engine/input/actions.ts:353


z

readonly z: number;

Defined in: src/engine/input/actions.ts:354

Clone this wiki locally