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
instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle); Nucleus sets it when it injects Proto Input, otherwise it is 0.hookID: Which hook to install: a ProtoInput.Values.*HookID value, e.g. ProtoInput.Values.GetCursorPosHookID or ProtoInput.Values.FocusHooksHookID.
✎ Parameters: AI-written from the Nucleus source.
Is this right?
Tell us what's wrong