showtriggers_toggle

From Valve Developer Community
Jump to navigation Jump to search

showtriggers_toggle is a console command available in all Source Source games. It is used to switch the visibility of triggers derived from CBaseTrigger, as well as trigger_vphysics_motion and trigger_transition which aren't derived from CBaseTrigger.

Half-Life 2 Half-Life 2 d2_coast_07 with showtriggers_toggle trigger_hurt. Note the Z-fighting.

A classname can be specified as the first parameter to choose which triggers' visibility to toggle (for example showtriggers_toggle trigger_hurt).

showtriggers

showtriggers is a console variable that, when set to 1, makes triggers spawn in a visible state. Their visibility can still be toggled by showtriggers_toggle.

See also

External links

  • tf2branch definition link[Todo]