This article relates to the game "Empires". Click here for more information.

emp_logic_playercount_listener

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

Class hierarchy
???
CBaseEntity

emp_logic_playercount_listener is a point entity available in Empires Empires. It fires outputs when the player count changes. The group of players to check for can be restricted to Brenodi or Northern Faction players, and can also be restricted to just alive players.

Warning.pngWarning:This entity will be included in a future release.


Keyvalues

Name (targetname) <string>
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

Team To Listen To (TeamNum) <choices>
Optionally set this entity to only listen for player counts of a certain team.

Values:

  • 0: Both
  • 1: Northern Faction only
  • 2: Brenodi Empire only
Subgroup (AliveOnly) <choices>
Of the team(s) selected, which players should we count?

Values:

  • 0: All Players
  • 1: Alive Players Only
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

Enable <void>
Enable updates via the OutValue output.
Disable <void>
Disable updates via the OutValue output.
Toggle <void>
Toggle updates via the OutValue output.
GetValue <void>
Causes the listener to fire its OnGetValue output with the current playercount. Used for polling the playercount when you don't want constant updates from the OutValue output.

Outputs

OutValue <integer>
Fired when the playercount changes. The parameter is set to the new playercount.
OnGetValue <integer>
Fired in response to the GetValue input. Used for polling the counter when you don't want constant updates from the OutValue output. The parameter is set to the current playercount.