Logic coop manager: Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{portal2 point|logic_coop_manager}} ==Entity description== Co-op manager. ==Keyvalues== {{KV Targetname}} {{KV Angles}} {{KV|Default player state A|choices}} :* 0 : Disabled :…') |
(Updated with data from the official portal2.fgd) |
||
Line 1: | Line 1: | ||
{{portal2 point|logic_coop_manager}} | {{portal2 point|logic_coop_manager}} | ||
==Entity description== | ==Entity description== | ||
Manages two sets of values and can fire outputs based on the state of those values. Useful in coop where you can have players independently setting states on buttons, switches, etc. | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Default State A|choices|The default state of A}} | |||
{{KV|Default | :* 0 : FALSE | ||
:* 0 : | :* 1 : TRUE | ||
:* 1 : | {{KV|Default State B|choices|The default state of B}} | ||
{{KV|Default | :* 0 : FALSE | ||
:* 0 : | :* 1 : TRUE | ||
:* 1 : | |||
==Inputs== | ==Inputs== | ||
{{I Targetname}} | {{I Targetname}} | ||
{{ | {{IO|SetStateATrue|Set State A to TRUE}} | ||
{{IO| | {{IO|SetStateAFalse|Set State A to FALSE}} | ||
{{IO| | {{IO|ToggleStateA|Toggle State A}} | ||
{{IO|SetStateBTrue}} | {{IO|SetStateBTrue|Set State B to TRUE}} | ||
{{IO| | {{IO|SetStateBFalse|Set State B to FALSE}} | ||
{{IO|ToggleStateB|Toggle State B}} | |||
==Outputs== | ==Outputs== | ||
{{O Targetname}} | {{O Targetname}} | ||
{{IO|OnChangeToAllTrue}} | {{IO|OnChangeToAllTrue|Fires when ALL of the values change to TRUE for the first time}} | ||
{{IO| | {{IO|OnChangeToAnyTrue|Fires when ANY of the values change to tTRUE for the first time}} | ||
{{IO| | {{IO|OnChangeToAllFalse|Fires when ALL of the values change to FALSE for the first time}} | ||
{{IO|OnChangeToAnyFalse}} | {{IO|OnChangeToAnyFalse|Fires when ANY of the values change to FALSE for the first time}} |
Revision as of 01:53, 11 May 2011
Entity description
Manages two sets of values and can fire outputs based on the state of those values. Useful in coop where you can have players independently setting states on buttons, switches, etc.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Default State A ([todo internal name (i)]) <choices>
- The default state of A
- 0 : FALSE
- 1 : TRUE
- Default State B ([todo internal name (i)]) <choices>
- The default state of B
- 0 : FALSE
- 1 : TRUE
Inputs
- SetStateATrue
- Set State A to TRUE
- SetStateAFalse
- Set State A to FALSE
- ToggleStateA
- Toggle State A
- SetStateBTrue
- Set State B to TRUE
- SetStateBFalse
- Set State B to FALSE
- ToggleStateB
- Toggle State B
Outputs
- OnChangeToAllTrue
- Fires when ALL of the values change to TRUE for the first time
- OnChangeToAnyTrue
- Fires when ANY of the values change to tTRUE for the first time
- OnChangeToAllFalse
- Fires when ALL of the values change to FALSE for the first time
- OnChangeToAnyFalse
- Fires when ANY of the values change to FALSE for the first time