Skip to content

API Variable ControlledBy

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Variable: ControlledBy

const ControlledBy: DataComponentDef<{
  player: ScalarType<"i32">;
}>;

Defined in: src/engine/input/players.ts:29

On a pawn: the index of the player controlling it. Its action sets are copies of that player's.

Clone this wiki locally