Skip to content

API Interface ActionEvent

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

Interface: ActionEvent

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

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:308


index

readonly index: number;

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

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:304

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:309


player

readonly player: GameObject;

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

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:307


value

readonly value: number;

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

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:312


y

readonly y: number;

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


z

readonly z: number;

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

Clone this wiki locally