Comp relay: Difference between revisions
Jump to navigation
Jump to search

Note: Inputs and outputs only work if given directly from entities placed in Hammer, messages sent in game and dynamically will not work.
m (Nesciuse moved page Comp relay/en to Comp relay without leaving a redirect: Move en subpage to basepage) |
SirYodaJedi (talk | contribs) |
||
Line 15: | Line 15: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV | {{KV Targetname null|vbsp only=1}} | ||
{{KV ControlEnables}} | {{KV ControlEnables}} | ||
{{KV|Extra Delay|intn=delay|float|Add this delay to all outputs. This allows you to control this via $fixup values, for instance.}} | {{KV|Extra Delay|intn=delay|float|Add this delay to all outputs. This allows you to control this via $fixup values, for instance.}} |
Revision as of 16:52, 1 September 2024


comp_relay | |
---|---|
![]() | |
Type | Internal Point entity |
Engine | ![]() |
Availability | ![]() |
comp_relay
is an internal point entity available in Portal 2: Community Edition.
It is also available in all games with TeamSpen's Hammer Addons installed. It is an optimized version of logic_relay. The entities numerous inputs and outputs can be used to bundle inputs/outputs together. Some features from
logic_relay
are missing, most are missing because this entity does not have any of its flags.

Keyvalues
- Name (targetname) <string>
- Name of this entity. Can be used by compile tools as a prop_static's lighting origin.
Also displayed in Hammer's 2D views and Entity Report. No effect in-game.
ControlEnables:
- Control Type (ctrl_type) <choices>
- Controls how the Control Value is interpreted.
- 0 : Is Enabled?
- 1 : Is Disabled?
- Control Value (ctrl_value) <choices>
- Decides whether this entity is enabled. If disabled, the entity has no effect.
- 0 : No
- 1 : Yes
- Extra Delay (delay) <float>
- Add this delay to all outputs. This allows you to control this via $fixup values, for instance.
Inputs
- Trigger <string >
- Trigger the relay and fire the output.
- TurnOn <string >
- Fire the OnTurnedOn output.
- TurnOff <string >
- Fire the OnTurnedOff output.
- FireUser1 to FireUser8 <string >
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.
Outputs
- OnTrigger <string >
- Fired when the relay is triggered.
- OnTurnOn <string >
- Fired when the relay is turned on.
- OnTurnOff <string >
- Fired when the relay is turned off.
- OnUser1 to OnUser8 <string >
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser8
Input; see User Inputs and Outputs.
See also