This article's documentation is for anything that uses the Source engine. Click here for more information.

Logic coop manager: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Logic coop manager/en to Logic coop manager without leaving a redirect: Move en subpage to basepage)
(Now in Gmod as of the March 2025 update, though not currently in the FGD. Feel free to remove that tag once its fixed, but it might be better to leave it until the next full update.)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{this is a|point entity|name=logic_coop_manager|since=Alien Swarm|sprite=1}} It 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 different buttons, switches, etc.
{{this is a|point entity|name=logic_coop_manager|since=Alien Swarm|sprite=1}} {{also|{{gmod}} {{!fgd}}}} It 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 different buttons, switches, etc.


==KeyValues==
==KeyValues==

Revision as of 12:47, 27 March 2025

English (en)Translate (Translate)
Logic coop manager.png

logic_coop_manager is a point entity available in all Source Source games since Alien Swarm Alien Swarm. (also in Garry's Mod !FGD) It 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 different buttons, switches, etc.

KeyValues

Default State A ([todo internal name (i)]) <boolean>
The default state of A
Default State B ([todo internal name (i)]) <boolean>
The default state of B
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 TRUE 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