mtl_trigger_switch
An entity that can trigger one target when it is turned on, and another when it is turned off. It remembers its own state, so sending an 'on' or 'off' signal to this entity when it's already in that state won't do anything. This entity works well with the +targetname
and -targetname
target patterns. Triggering this entity in a 'normal' way will toggle it.
Properties
- Name (targetname) -- The name of this entity.
- Target (on) (target_on) -- The target that will be triggered when this entity is turned on.
- Target (off) (target_off) -- The target that will be triggered when this entity is turned off.
Flags
-
Start on (1) -- If enabled, the
mtl_trigger_switch
will start in the 'on' state.
Notes
-
This entity generates a tiny
button_target
, which is one of the few entities that reacts to 'on' and 'off' signals. This entity reacts to damage however, so to prevent it from being triggered accidentally by nearby explosions it is automatically placed in the far corner of the map.