Nucleus handler tools β€Ί Docs β€Ί Player β€Ί ProtoController4

Player.ProtoController4

Open in the workbench (search, and try it in a handler)

Player.ProtoController4: number
AI-writtenAI-written. Based on: Nucleus PlayerInfo.cs (opens in a new tab); ProtoInputLauncher.cs (opens in a new tab) (SetProtoControllersIndex); GenericGameHandler.cs (opens in a new tab).

Fourth controller index Proto Input gives this player's instance: one-based, 0 means none. With Game.ProtoInput.MultipleProtoControllers, Nucleus sets it right after Game.Play to the third guest's GamepadId + 1, or to the player's own if there are no guests (otherwise 0), unless Game.UseManualProtoControllersSetup is true. Only sent to Proto Input when MultipleProtoControllers is true.

Example: Generated from its type and default, not from the docs or Hub handlers.

var protoController4 = Player.ProtoController4;
Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop