logic_coop_manager
Jump to navigation
Jump to search
Code classes:
CLogicCoopManager
CLogicalEntity
CServerOnlyEntity
CBaseEntity
(all ents)
logic_coop_manager
is a point entity present in Portal 2. It monitors the values of two booleans. Its most common use is to track when both players are in front of a door.
Keyvalues[edit | edit source]
- Default State A
(DefaultPlayerStateA)
<choices>
- Default state of boolean A.
- 0: False
- 1: True
- Default State B
(DefaultPlayerStateB)
<choices>
- Default state of boolean B.
- 0: False
- 1: True
Inputs[edit | edit source]
- SetStateATrue
- Sets the state of A to true.
- SetStateBTrue
- Sets the state of B to true.
- SetStateAFalse
- Sets the state of A to false.
- SetStateBFalse
- Sets the state of B to false.
- ToggleStateA
- Alternates the state of A.
- ToggleStateB
- Alternates the state of B.
Outputs[edit | edit source]
- OnChangeToAllFalse
- Fires when both states become false when previously they were different.
- OnChangeToAllTrue
- Fires when both states become true when previously they were different.
- OnChangeToAnyFalse
- Fires when either state becomes false when previously they were both true.
- OnChangeToAnyTrue
- Fires when either state becomes true when previously they were both false.