AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ambience sound (https://forums.alliedmods.net/showthread.php?t=94757)

addicted2sex 06-15-2009 03:19

Ambience sound
 
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);


All times are GMT -4. The time now is 13:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.