Trigger coop: Difference between revisions
Jump to navigation
Jump to search
Note:This entity is specifically designed for detecting players. 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.
m (TODO) |
(Started using Template:Synergy brush) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:trigger_coop}} | {{DISPLAYTITLE:trigger_coop}} | ||
[[File:Synergy trigger coop hud.jpg|thumb|right|350px|trigger_coop's HUD element showing that 3 players are currently touching the trigger, and 1 more is required to fire '''OnPlayersIn''' output.]] | [[File:Synergy trigger coop hud.jpg|thumb|right|350px|trigger_coop's HUD element showing that 3 players are currently touching the trigger, and 1 more is required to fire '''OnPlayersIn''' output.]] | ||
{{Synergy}} | {{Synergy brush|trigger_coop}} It keeps track of the number of players touching it. | ||
{{note|This entity is specifically designed for detecting players. Use [[trigger_multiple]] for other entities.}} | {{note|This entity is specifically designed for detecting players. Use [[trigger_multiple]] for other entities.}} | ||
Line 33: | Line 33: | ||
*[[Synergy_Entities|List of Synergy's Entities]] | *[[Synergy_Entities|List of Synergy's Entities]] | ||
[[Category:Level Design]] | [[Category:Level Design]] |
Revision as of 13:21, 3 May 2020
Template:Synergy brush It keeps track of the number of players touching it.

Entity description
A brush entity that counts the number players touching it and fires OnPlayersIn output when the number of players passes the set threshold. It can be set to require a specific number of players, or require a percentage of living players. A HUD element can be shown to all players touching the trigger; displaying 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 living 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.
|