/tg/ Station 13 - Modules - TypesVar Details

Signal Handler Component

A component that registers signals on events and listens for them.

Vars

custom_signalWhether it is a custom signal id or not.
entityThe entity received from the event.
event_triggeredThe event has been triggered
input_signal_portsThe custom input from the current signal type.
instantWhether this executes instantly or not. If set to 0, this will not execute instantly.
output_signal_portsThe custom output from the current signal type.
registerRegisters the signal
registered_entitiesThe current entities that have the signal registered on it
registered_signalThe current registered signal
signal_handler_optionsWhether it is a global or object signal
signal_idThe list of signal IDs that can be selected as an option.
signal_portsThe custom signal ports from the current signal type. Used for saving and loading.
targetEntity to register the signal on
unregisterUnregisters the signal on the target.
unregister_allUnregisters the signal from everyone.

Var Details

custom_signal

Whether it is a custom signal id or not.

entity

The entity received from the event.

event_triggered

The event has been triggered

input_signal_ports

The custom input from the current signal type.

instant

Whether this executes instantly or not. If set to 0, this will not execute instantly.

output_signal_ports

The custom output from the current signal type.

register

Registers the signal

registered_entities

The current entities that have the signal registered on it

registered_signal

The current registered signal

signal_handler_options

Whether it is a global or object signal

signal_id

The list of signal IDs that can be selected as an option.

signal_ports

The custom signal ports from the current signal type. Used for saving and loading.

target

Entity to register the signal on

unregister

Unregisters the signal on the target.

unregister_all

Unregisters the signal from everyone.