Trigger coop: Difference between revisions
Jump to navigation
Jump to search
Note:This entity is specifically designed for detecting players. Otherwise use trigger_multiple for other entities.
Note:Filters can be used with this entity, however only players can use the special features of this entity.
Warning:Only use the Client spawnflag for this entity.
(Created page with "{{Synergy}} '''trigger_coop''' is a brush entity available in Synergy. It counts the number of players within its volume, either fractionally or as a specific number. {{...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Synergy}} '''trigger_coop''' is a [[brush entity]] available in [[Synergy]]. It | {{wrongtitle|title=trigger_coop}} | ||
{{Synergy}} '''trigger_coop''' is a [[brush entity]] available in [[Synergy]]. It keeps track of the number of players touching it. | |||
{{note|This entity is specifically designed for [[ | {{note|This entity is specifically designed for detecting players. Otherwise use [[trigger_multiple]] for other entities.}} | ||
[[File:Synergy trigger coop hud.jpg|thumb|right|350px|trigger_coop's HUD element displaying 3 players are currently touching the trigger and 1 more is required to fire '''OnPlayersIn''' output.]] | |||
==Entity description== | ==Entity description== | ||
Entity that counts the number players | Entity that counts the number players touching it and fires '''OnPlayersIn''' output when the number passes the set threshold. It can be set to require a specific number of players, or require a percentage of '''alive''' players. Also can display a [[HUD]] element to all players touching the trigger, showing the current number of players that are also touching it, out of the total requirement. | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|PlayerValue|int|The number or percent of live players this trigger will use to compare with. Use value range of 0 - 100 for percentage.|param=string}} | |||
{{KV|CountType|choices|How the trigger should count the players.|param=string}} | {{KV|CountType|choices|How the trigger should count the players.|param=string}} | ||
:* 0 : Specific Number of players. | :* 0 : Specific Number of players. | ||
:* 1 : Percentage of all living players. | :* 1 : Percentage of all living players. | ||
{{KV|UseHud|choices|Use the HUD element for each player touching the trigger. (It will not display while the trigger is disabled)|param=string}} | |||
{{KV|UseHud|choices| | |||
:* 0 : No | :* 0 : No | ||
:* 1 : Yes | :* 1 : Yes | ||
{{KV Trigger}} | {{KV Trigger}} | ||
{{note|Filters can be used with this entity, however only players can use the special features of this entity.}} | |||
==Flags== | ==Flags== | ||
{{Fl Trigger}} | {{Fl Trigger}} | ||
{{warning|Only use the Client spawnflag for this entity.}} | |||
{{ | |||
==Inputs== | ==Inputs== | ||
Line 27: | Line 25: | ||
==Outputs== | ==Outputs== | ||
{{IO|OnPlayersIn|Fired when the player count | {{IO|OnPlayersIn|Fired when the player count passes the requirement.}} | ||
{{IO|OnPlayersOut|Fired when the player count drops '''below''' the requirement after reaching it.}} | {{IO|OnPlayersOut|Fired when the player count drops '''below''' the requirement after reaching it.}} | ||
{{O Trigger}} | {{O Trigger}} |
Revision as of 17:23, 9 November 2011
Template:Wrongtitle
trigger_coop is a brush entity available in Synergy. It keeps track of the number of players touching it.

Entity description
Entity that counts the number players touching it and fires OnPlayersIn output when the number passes the set threshold. It can be set to require a specific number of players, or require a percentage of alive players. Also can display a HUD element to all players touching the trigger, showing the current number of players that are also touching it, out of the total requirement.
Keyvalues
- PlayerValue ([todo internal name (i)]) <integer>
- The number or percent of live players this trigger will use to compare with. Use value range of 0 - 100 for percentage.
- CountType ([todo internal name (i)]) <choices>
- How the trigger should count the players.
- 0 : Specific Number of players.
- 1 : Percentage of all living players.
- UseHud ([todo internal name (i)]) <choices>
- Use the HUD element for each player touching the trigger. (It will not display while the trigger is disabled)
- 0 : No
- 1 : Yes
|

Flags
|

Inputs
|
Outputs
- OnPlayersIn
- Fired when the player count passes the requirement.
- OnPlayersOut
- Fired when the player count drops below the requirement after reaching it.
|