EmitAmbientGameSound Function

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.

bool EmitAmbientGameSound(const char[] gameSound, const float pos[3], int entity, int flags, float delay)

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

No description.