Nucleus handler tools βΊ Docs βΊ ProtoInput βΊ DisableMessageFilter
ProtoInput.DisableMessageFilter
Open in the workbench (search, and try it in a handler)
ProtoInput.DisableMessageFilter(
instanceHandle: number,
filterID: number
): void
Turns off a window message filter in the game instance. Parameters: the instance handle (Player.ProtoInputInstanceHandle) and a filter ID from ProtoInput.Values (the FilterID values).
instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle).filterID: Which filter to turn off: a ProtoInput.Values.*FilterID value, the same one passed to EnableMessageFilter.
Example: From Hub handlers
for (var i = 0; i < PlayerList.Count; i++) {
var player = PlayerList[i];
ProtoInput.DisableMessageFilter(
player.ProtoInputInstanceHandle,
ProtoInput.Values.MouseButtonFilterID
);
}
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