Nucleus handler tools βΊ Docs βΊ ProtoInput βΊ EnableMessageBlock
ProtoInput.EnableMessageBlock
Open in the workbench (search, and try it in a handler)
ProtoInput.EnableMessageBlock(
instanceHandle: number,
messageID: number
): void
Blocks a window message in the game instance: the game reads it as an empty message (WM_NULL). Parameters: the instance handle (Player.ProtoInputInstanceHandle) and the message number. Only acts while the MessageFilterHookID hook is installed, and the number goes through Proto Input's own message table, so an unlisted number can block a different message.
Example: From Hub handlers
for (var i = 0; i < PlayerList.Count; i++) {
var player = PlayerList[i];
ProtoInput.EnableMessageBlock(
player.ProtoInputInstanceHandle,
0x0006
);
}
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