EmitAmbientSound Function

Emits an ambient sound.

void EmitAmbientSound(const char[] name, const float pos[3], int entity, int level, int flags, float vol, int pitch, float delay)

Parameters

const char[] name

Sound file name relative to the "sound" folder.

const float[3] pos

Origin of sound.

int entity

Entity index to associate sound with.

int level

Sound level (from 0 to 255).

int flags

Sound flags.

float vol

Volume (from 0.0 to 1.0).

int pitch

Pitch (from 0 to 255).

float delay

Play delay.