Logic register activator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Re-arranged some fields)
mNo edit summary
Line 1: Line 1:
{{portal2 point|logic_register_activator}}
{{base point|logic_register_activator|since=Portal 2}} It stores an entity and sends messages with it as the activator.
 
==Entity description==
Stores an entity and sends messages with it as the activator.


Useful for keeping track of entities with mangled names due to template spawners and instances.
Useful for keeping track of entities with mangled names due to template spawners and instances.
Line 12: Line 9:
==Inputs==
==Inputs==
{{IO|Toggle|Toggle between enabled and disabled.}}
{{IO|Toggle|Toggle between enabled and disabled.}}
{{IO|FireRegisteredAsActivator1|Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.}}
{{IO|FireRegisteredAsActivator1|to=FireRegisteredAsActivator4|Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.}}
{{IO|FireRegisteredAsActivator2|Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.}}
{{IO|FireRegisteredAsActivator3|Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.}}
{{IO|FireRegisteredAsActivator4|Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.}}
{{IO|RegisterEntity|Stores an entity to later be used as an activator.|param=string}}
{{IO|RegisterEntity|Stores an entity to later be used as an activator.|param=string}}
{{I Targetname}}
{{I Targetname}}
Line 21: Line 15:


==Outputs==
==Outputs==
{{IO|OnRegisteredActivate1|Fired to send a message using the registered as the activator.}}
{{IO|OnRegisteredActivate1|to=OnRegisteredActivate4|Fired to send a message using the registered as the activator.}}
{{IO|OnRegisteredActivate2|Fired to send a message using the registered as the activator.}}
{{IO|OnRegisteredActivate3|Fired to send a message using the registered as the activator.}}
{{IO|OnRegisteredActivate4|Fired to send a message using the registered as the activator.}}
{{O Targetname}}
{{O Targetname}}

Revision as of 07:21, 30 July 2011

Template:Base point It stores an entity and sends messages with it as the activator.

Useful for keeping track of entities with mangled names due to template spawners and instances.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

Toggle
Toggle between enabled and disabled.
FireRegisteredAsActivator1 to FireRegisteredAsActivator4
Start a message from this entity using the matching OnRegisteredActivating - but the activator is the registered entity.
RegisterEntity <stringRedirectInput/string>
Stores an entity to later be used as an activator.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnRegisteredActivate1 to OnRegisteredActivate4
Fired to send a message using the registered as the activator.