Nucleus handler tools › Docs › ProtoInput › InstallHook

ProtoInput.InstallHook

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

ProtoInput.InstallHook(
  instanceHandle: number,
  hookID: number
): void

Installs a Proto Input hook in the game instance. Parameters: the instance handle (Player.ProtoInputInstanceHandle) and a hook ID from ProtoInput.Values (the ...HookID values). An unknown handle does nothing, and the call waits until Proto Input in the game has connected.

✎ AI-written, based on Nucleus ProtoInput.cs (InstallHook), ProtoInputLoader InstallHooks.cpp + InstanceHandling.cpp (WaitClientConnect), ProtoInputHooks HookManager.cpp (InstallHook). Not from the official docs. Is it wrong? Tell us

✎ Parameters: AI-written from the Nucleus source.

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop