EmitAmbientGameSound

Last Updated2014-07-04
Created At2014-07-04

Emits an ambient game sound. Game sounds are found in a game's scripts/game_sound.txt or other files referenced from it Note that if a game sound has a rndwave section, one of them will be returned at random.

stock bool EmitAmbientGameSound(const char[] gameSound, const float pos[3], int entity = 0, int flags = SND_NOFLAGS, float delay = 0.000000)

Parameters

const char[] gameSound
Name of game sound.
const float[3] pos
Origin of sound.
int entity
Entity index to associate sound with.
int flags
Sound flags.
float delay
Play delay.

Return Value

bool