๐ถSignal
These are all of the functions revolving around signals that Wave supports.
Can Signal Replicate
<bool> cansignalreplicate(<RBXScriptSignal signal>)
Checks if
RBXScriptSignal
is capable of being replicated (i.e., fired to the server or across the client-server boundary).
Disable Connection
<void> disableconnection(<RBXScriptConnection> Connection)
Disables
Connection
.
Enable Connection
<void> enableconnection(<RBXScriptConnection> Connection)
Enables
Connection
.
Fire Signal
<void> firesignal(<RBXScriptSignal> Signal, <variant?> Args...)
Fires all signals connected to the
signal
. If given, the arguments will be used to call the function.
Get All Replicate Signals
<table> getallreplicatesignals(<void>)
Returns a table containing all
RBXScriptSignal
objects in the game that are capable of replication.
Get Connections
<table> getconnections(<RBXScriptSignal> Signal)
Returns a
table
with all connections to the givensignal
.
Connections:
.Function
The function connected to the connection.
:Enable
Enables the connection.
:Disable
Disables the connection.
:Fire
Fires the connection.
Get Signal Arguments
<table> getsignalarguments(<RBXScriptConnection conn>)
Retrieves the arguments passed to a specific
RBXScriptConnection
when it was last fired.
Hook Signal
<void> hooksignal(<RBXScriptSignal> Signal, <function> callback)
Intercepts signal invocations. When the
Signal
is fired, thecallback
is called for each Lua connection with an info table and arguments. Returningtrue
from the callback triggers the original connection.
Note:
hooksignal
cannot intercept C connections or CoreScript Lua connections.
Is Connection Enabled
<bool> isconnectionenabled(<RBXScriptConnection> Connection)
Returns
true
if a connection is enabled.
Is Signal Hooked
<void> issignalhooked(<RBXScriptSignal> Signal)
Returns
true
ifSignal
is hooked.
Replicate Signal
<void> replicatesignal(<RBXScriptSignal signal>, <var ...args>)
Fires a
RBXScriptSignal
locally, simulating its activation with the provided arguments.
Unhook Signal
<void> unhooksignal(<RBXScriptSignal> Signal)
Unhooks a signal hooked with
hooksignal
.
Last updated