CTriggerMultiple
(Redirected from Trigger multiple)
Jump to navigation
Jump to search
Code classes:
CTriggerMultiple
CBaseTrigger
(triggers)CBaseToggle
CBaseEntity
(all ents)
CTriggerMultiple
is a code class present in all Source games.
Classnames:
trigger_multiple
- Standard, most common entity for trigger logic. Simply fires outputs.
Bug: Does not detect stationary (sleeping) physics objects.
Note: trigger_multiple
s that are compiled into entity groups are converted to the entity script_trigger_multiple
.
Keyvalues[edit | edit source]
- Delay Before Reset
(wait)
<float>
- Time after being activated before OnTrigger can fire again. -1 means it will never fire the output again. If zero, defaults to 0.2.
- Entire Team Number
(entireteam)
<choices>
(only available in ) - If every member of a specific team is inside this trigger, OnEntireTeamStartTouch and OnEntireTeamEndTouch will fire at appropriate times.
- 0: None
- 2: Survivor
- 3: Infected
- Incapacitated players can trigger
(allowincap)
<boolean>
(only available in ) - Allows knocked-down players to activate the trigger.
- Ghost players can trigger
(allowghost)
<boolean>
(only available in ) - Allows unspawned infected players in Versus mode to activate the trigger.
Outputs[edit | edit source]
- OnTrigger
- Fires whenever a valid entity is inside the trigger (potentially continuously). The trigger will wait until Delay Before Reset is over before firing this output again.
- OnEntireTeamStartTouch (only available in )
- Fires when every member of the team specified in Entire Team Number is touching the trigger.
- OnEntireTeamEndTouch (only available in )
- Fires when the trigger is no long being touched by every member of the team specified in Entire Team Number.