AlliedModders

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

Rexonspix 10-26-2005 09:49

Play sound.
 
Hi guys.
I maded this object_jukebox, but how can i do so it play a sound there?
i know for a player it would be
Code:
emit_sound(id, CHAN_VOICE, "sound.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
but how can i do so it plays at the jukebox called object_jukebox?

XxAvalanchexX 10-26-2005 15:16

Code:
new ent = find_ent_by_class(-1,"object_jukebox"); if(is_valid_ent(ent))    emit_sound(ent,...);


All times are GMT -4. The time now is 23:42.

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