trigger_cdaudio

From Valve Developer Community
Revision as of 11:32, 13 July 2026 by SirYodaJedi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
C++ Class hierarchy
CTriggerCDAudio
↳CBaseTrigger
↳CBaseToggle
↳CBaseEntity
C++ triggers.cpp
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

trigger_cdaudio is a trigger entity available in all Source Source games. A leftover from GoldSrc GoldSrc, it calls a nonexistent cd console command and as such is effectively nonfunctional for its intended purpose (but still works as a generic trigger). Use a trigger_once to call an ambient_generic instead.

Note.pngNote: Other Keyvalues / Inputs / Outputs are same as trigger.

Keyvalues

CD track to play (health) <integer choices>
Range -1 to 30. Setting to -1 would stop the current CD track.

Inputs

Use
Would play the specified CD track from health when fired.
Kills the entity after being fired.

See also