ent_playsound ( ENTITY*, SOUND*, var volume);

Plays a 3D sound at the position of the given entity.

ent_playloop ( ENTITY*, SOUND*, var volume);

Plays a 3D sound in an endless loop until it is stopped explicitly. The sound source moves together with the entity.

Parameter:

ENTITY* Entity pointer.
SOUND* Sound pointer.
volume volume in percent, and range in 10 quant units (0..1000).

Returns:

Sound handle.

Remarks:

Example:

SOUND* whosh = "whosh.wav";
var whosh_handle;
...
whosh_handle = ent_playloop(my,whosh,100);

See also:

snd_play, snd_stop, snd_tune, snd_playing, doppler_factor

► latest version online