Skip to content

API Variable ConnectionPlayer

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

Variable: ConnectionPlayer

const ConnectionPlayer: DataComponentDef<{
  index: ScalarType<"i32">;
}>;

Defined in: src/engine/input/inputNet.ts:39

On a networked pawn: which of its owning connection's local players drives it (ADR 0337), for a client that sends several local players' actions over one connection (local co-op online). The server writes that player's actions into the pawn's action sets. Without it, player 0: a single-player client needs nothing. The owning connection is Replicated.ownerId's, as before. It's a separate component from ControlledBy, which names a player of the World's own (a host's local players), so a host never copies its own players' actions onto a remote client's pawn.

Clone this wiki locally