Logic coop manager: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated with data from the official portal2.fgd)
m (Re-arranged some fields)
Line 6: Line 6:


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|Default State A|choices|The default state of A}}
{{KV|Default State A|choices|The default state of A}}
:* 0 : FALSE
:* 0 : FALSE
Line 13: Line 12:
:* 0 : FALSE
:* 0 : FALSE
:* 1 : TRUE
:* 1 : TRUE
{{KV Targetname}}


==Inputs==
==Inputs==
{{I Targetname}}
{{IO|SetStateATrue|Set State A to TRUE}}
{{IO|SetStateATrue|Set State A to TRUE}}
{{IO|SetStateAFalse|Set State A to FALSE}}
{{IO|SetStateAFalse|Set State A to FALSE}}
Line 22: Line 21:
{{IO|SetStateBFalse|Set State B to FALSE}}
{{IO|SetStateBFalse|Set State B to FALSE}}
{{IO|ToggleStateB|Toggle State B}}
{{IO|ToggleStateB|Toggle State B}}
{{I Targetname}}


==Outputs==
==Outputs==
{{O Targetname}}
{{IO|OnChangeToAllTrue|Fires when ALL of the values change to TRUE for the first time}}
{{IO|OnChangeToAllTrue|Fires when ALL of the values change to TRUE for the first time}}
{{IO|OnChangeToAnyTrue|Fires when ANY of the values change to tTRUE for the first time}}
{{IO|OnChangeToAnyTrue|Fires when ANY of the values change to tTRUE for the first time}}
{{IO|OnChangeToAllFalse|Fires when ALL of the values change to FALSE for the first time}}
{{IO|OnChangeToAllFalse|Fires when ALL of the values change to FALSE for the first time}}
{{IO|OnChangeToAnyFalse|Fires when ANY of the values change to FALSE for the first time}}
{{IO|OnChangeToAnyFalse|Fires when ANY of the values change to FALSE for the first time}}
{{O Targetname}}

Revision as of 01:12, 13 May 2011

Template:Portal2 point


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

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
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

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