CLogicRelay: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== Overview ==
== Overview ==
An entity used to forward or "relay" a number of inputs to other entities. It's use is similar to that of a function or subroutine in programming, when you have a number of inputs which you would like to send repeatedly across the logic of your map, you can package them into a logic_relay to be fired with a single input, rather than repeating large sections of logic redundantly.
An entity used to forward or "relay" a number of inputs to other entities. It's usage is similar to that of a function or subroutine in programming, when you have a number of inputs which you would like to send repeatedly across the logic of your map, you can package them into a logic_relay to be fired with a single input, rather than repeating large sections of logic redundantly.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicrelay.h /game/server/logicrelay.h]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/logicrelay.h /game/server/logicrelay.h]'''

Latest revision as of 17:44, 10 July 2022

Overview[edit | edit source]

An entity used to forward or "relay" a number of inputs to other entities. It's usage is similar to that of a function or subroutine in programming, when you have a number of inputs which you would like to send repeatedly across the logic of your map, you can package them into a logic_relay to be fired with a single input, rather than repeating large sections of logic redundantly.

Source location : /game/server/logicrelay.h

Linked Entity : logic_relay

Class Structure[edit | edit source]

Entity DataMaps[edit | edit source]

CLogicRelay
Name Type Description
InputCancelPending
InputDisable
InputEnable
InputEnableRefire
InputToggle
InputTrigger
m_OnSpawn
m_OnTrigger
m_bDisabled
m_bWaitForRefire