This article's documentation is for the "GoldSrc" engine. Click here for more information.

ambient_fmodstream

From Valve Developer Community
Revision as of 06:12, 2 December 2025 by SirYodaJedi (talk | contribs) (→‎Flags: spawnflags don't have real "defaults")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
C++ Class hierarchy
CTargetFMODAudio
CPointEntity
CBaseEntity
C++ triggers.cpp

ambient_fmodstream is a logical entity available in Spirit of Half-Life Spirit of Half-Life and Cry of Fear Cry of Fear. A specialized FMOD audio player within the game environment, designed to play audio files in formats such as MP3, WMA, and OGG. Unlike ambient_generic, it is non-spatial.

Warning.pngWarning:Continues playing even when disconnecting, loading old saves, and starting new games.
AltNames.pngAltNames: This entity is also tied to trigger_mp3audio.

Keyvalues

Name (targetname) <string>
The targetname that other entities refer to this entity by, usually via the target, killtarget, and TriggerTarget KVs.
Respects trigger_relay's USE_TYPE.
File Name (message) <string>
Specifies the relative path to the audio file within the 🖿spirit\

Flags

Remove on fire : [1]
When set, the entity is removed or triggered to stop playing the audio file upon a specific in-game event