logic_register_activator

From Source Entities
Jump to navigation Jump to search

Code classes:

logic_register_activator is a point entity present in all games since P2.pngPortal 2. It can be told of another entity, store it in memory, and then target it at a later time. Essentially a pointer in the form of an entity. Useful for situations with unpredictable entity names, such as with templates or some complex repetitive logic systems.

Keyvalues[edit | edit source]

Start Disabled (StartDisabled) <boolean>
Stay inactive until Enabled.

Inputs[edit | edit source]

FireRegisteredAsActivator1 to FireRegisteredAsActivator4
Fires a corresponding OnRegisteredActivate output.
RegisterEntity <target_destination>
Tells the logic_register_activator to remember the specified entity.
Enable
Makes the entity active.
Disable
Makes the entity inactive.
Toggle
If on, turn off. If off, turn on.

Outputs[edit | edit source]

OnRegisteredActivate1 to OnRegisteredActivate4
Fires when a corresponding FireRegisteredAsActivator is sent. Activator is the entity specified in the RegisterEntity input's parameter.