|
Author
|
Message
|
|
Senior Member
Join Date: May 2009
Location: localhost
|

06-15-2009
, 03:19
Ambience sound
|
#1
|
I would like to add an ambience sound with the rain but when I add it the player footsteps aren't playing ?! Any ideas how ..
Here's the code
Quote:
precache_sound("ambience/rain.wav");
new entity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "ambient_generic"));
set_pev(entity, pev_health, 10.0);
set_pev(entity, pev_message,"ambience/rain.wav");
set_pev(entity, pev_spawnflags, (1<<0));
dllfunc(DLLFunc_Spawn, entity);
|
|
|
|
|