Nucleus handler tools β€Ί Docs β€Ί ProtoInput β€Ί UninstallHook

ProtoInput.UninstallHook

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

ProtoInput.UninstallHook(
  instanceHandle: number,
  hookID: number
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (UninstallHook); ProtoInputLoader InstallHooks.cpp (opens in a new tab); ProtoInputHooks HookManager.cpp (opens in a new tab) (UninstallHook).

Removes a Proto Input hook from the game instance. Parameters: the instance handle (Player.ProtoInputInstanceHandle) and a hook ID from ProtoInput.Values (the ...HookID values).

AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (UninstallHook, ExposedValues); PlayerInfo.cs (opens in a new tab) (ProtoInputInstanceHandle).
  • instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle).
  • hookID: Which hook to remove: a ProtoInput.Values.*HookID value, the same one passed to InstallHook.

Example: From Hub handlers

for (var i = 0; i < PlayerList.Count; i++) {
  var player = PlayerList[i];
  ProtoInput.UninstallHook(
    player.ProtoInputInstanceHandle,
    ProtoInput.Values.GetCursorPosHookID
  );
}
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