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
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).
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).
Tell us what's wrongGive feedback