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

Player.ProtoController1

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

Player.ProtoController1: 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) (InjectStartup/InjectRuntime calls).

First controller index Proto Input gives this player's instance: one-based (1 is the first gamepad, i.e. GamepadId + 1), 0 means none. Nucleus sets it for each player right after Game.Play, overwriting your value, unless Game.UseManualProtoControllersSetup is true. It is only sent to Proto Input when Game.ProtoInput.MultipleProtoControllers is true; otherwise Nucleus sends GamepadId + 1 (0 for raw mouse/keyboard players).

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

var protoController1 = Player.ProtoController1;
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