trigger_secret

From Valve Developer Community
Jump to: navigation, search
This trigger entity helps count the amount of secrets found in the official maps.

trigger_secret is a brush entity available in SiN Episodes SiN Episodes. It is a trigger volume that externally functions identical to a trigger_once but marks a secret area so the game can track them, which usually causes ambient/ritual_secret2.mp3 to be played and presents the player with a hud hint, with the tutorial for how to set it up can be found on the secret area tutorial page and a list of all those available in the game by default in the list of secret areas section.

Keyvalues

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Flags

BaseTrigger
  •  [1] : Clients (Survivors, Special Infected, Tanks Left 4 Dead series)
  •  [2] : NPCs (Common Infected, Witches Left 4 Dead series)
  •  [4] : Pushables (Passes entities with classname func_pushable)
  •  [8] : Physics Objects
  •  [16] : Only player ally NPCs
  •  [32] : Only clients in vehicles
  •  [64] : Everything (not including physics debris)
  •  [512] : Only clients *not* in vehicles
  •  [1024] : Physics debris
  •  [2048] : Only NPCs in vehicles (respects player ally flag)
  •  [4096] : Disallow Bots (removed since Left 4 Dead)


Inputs


BaseTrigger:
Toggle
Toggles this trigger between enabled and disabled states.
Enable
Enable trigger
Disable
Disable trigger

Outputs

TriggerOnce:

OnStartTouch
Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (!activator is the "toucher.")
OnTrigger
Fired repeatedly with a delay while an entity is within this trigger's volume. Delay is defined by Delay Before Reset key.