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

Player.ProtoInputInstanceHandle

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

Player.ProtoInputInstanceHandle: number
AI-writtenAI-written. Based on: Nucleus PlayerInfo.cs (opens in a new tab); ProtoInputLauncher.cs (opens in a new tab) (SetupInstance, InjectStartup, InjectRuntime); GenericGameHandler.cs (opens in a new tab) (call order).

Proto Input's handle for this player's game instance. Nucleus sets it when Proto Input injects into the instance (at launch with Game.ProtoInput.InjectStartup, or after launch with a runtime injection); it is 0 before that and when Proto Input isn't used. Inside Game.Play it is usually still 0, since Proto Input injects after it; use it in callbacks such as Game.ProtoInput.OnInputLocked.

Default: 0

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

var protoInputInstanceHandle = Player.ProtoInputInstanceHandle;
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