e2 docs signal - wiremod/wire GitHub Wiki
Signal
Group)
signalSetGroup(Sets the E-2's current signal group to S, this is applied during runOnSignal, signalSend, and signalSetOnRemove calls, so call it first (5 ops)
= signalGetGroup()
Gets the E-2's current signal group (5 ops)
Name,
Scope,
Activate)
runOnSignal(If N2 == 0 the chip will no longer run on this signal, otherwise it makes this chip execute when signal S is sent by someone in scope N (5 ops)
= signalClk()
Returns 1 if the chip was executed because of any signal, regardless of name, group or scope. Returns 0 otherwise (1 ops)
= signalClk(
Name)
Returns 1 if the chip was executed because the signal S was sent, regardless of group or scope. Returns 0 otherwise (1 ops)
= signalClk(
Name,
Scope)
Returns 1 if the chip was executed because the signal S was sent to the scope N, regardless of group. Returns 0 otherwise (1 ops)
= signalClk(
Group,
Name)
Returns 1 if the chip was executed because the signal S2 was sent in the group S, regardless of scope. Returns 0 otherwise (1 ops)
= signalClk(
Group,
Name,
Scope)
Returns 1 if the chip was executed because the signal S2 was sent in the group S to the scope N. Returns 0 otherwise (1 ops)
= signalName()
Returns the name of the received signal (4 ops)
= signalGroup()
Returns the group name of the received signal (4 ops)
= signalSender()
Returns the entity of the chip that sent the signal (4 ops)
= signalSenderId()
Returns the entity ID of the chip that sent the signal. Useful if the entity doesn't exist anymore (4 ops)
Name,
Scope)
signalSetOnRemove(Sets the signal that the chip sends when it is removed from the world (10 ops)
signalClearOnRemove()
Clears the signal that the chip sends when it is removed from the world (10 ops)
Name,
Scope)
signalSend(Sends signal S to scope N. Additional calls to this function with the same signal will overwrite the old call until the signal is issued (20 ops)
Name,
Receiver)
signalSendDirect(Sends signal S to the given chip. Multiple calls for different chips do not overwrite each other (10 ops)
Name,
Player)
signalSendToPlayer(Sends signal S to chips owned by the given player, multiple calls for different players do not overwrite each other (20 ops)