Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Trigger once

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

trigger_once

Source(core) Solid Entity


description

A trigger volume that removes itself after it is triggered once.


properties

  • Filter Name filtername(filterclass)
    Filter to use to see if activator triggers me. See filter_activator_name for more explanation.


spawn flags

  • 1: Clients - default: ON
  • 2: NPCs - default: OFF
  • 4: Pushables - default: OFF
  • 8: Physics Objects - default: OFF
  • 16: Only player ally NPCs - default: OFF
  • 32: Only clients in vehicles - default: OFF
  • 64: Everything - default: OFF
  • 512: Only clients *not* in vehicles - default: OFF


inputs

  • Toggle(void)
    Toggles this trigger between enabled and disabled states.


outputs

  • OnStartTouch(void)
    Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire.


related tutorials

Submit your tutorial for trigger_once

Personal tools