Can't stop entities emit_sound
I'm starting the sound for env_sprite entity like this:
Code:
emit_sound(ent, CHAN_STATIC, "ambience/alien_beacon.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)But before deleting the entity, I want the sound to stop playing, so I use: Code:
emit_sound(ent, CHAN_STATIC, "ambience/alien_beacon.wav", VOL_NORM, ATTN_NORM, SND_STOP, PITCH_NORM)Also tried this: Code:
message_begin(MSG_BROADCAST, SVC_STOPSOUND)The only thing that worked was client_cmd(0, "stopsound"), but that is not suitable for me because it stops other sounds. So how to stop the sound? |
Re: Can't stop entities emit_sound
Emit an empty sound.
|
Re: Can't stop entities emit_sound
Quote:
|
Re: Can't stop entities emit_sound
Quote:
Quote:
|
Re: Can't stop entities emit_sound
Try common/null.wav.
|
Re: Can't stop entities emit_sound
Same...
Using different channels didn't help also.. |
Re: Can't stop entities emit_sound
SND_STOP should work.
I've tried your sound, with 2 commands, to start/stop the sound, and SND_STOP stops well the sound. |
Re: Can't stop entities emit_sound
Did you tried it on a custom entity or on a player? Post your example.
|
Re: Can't stop entities emit_sound
Code:
Tried with player and entity, both way stop the sound. |
Re: Can't stop entities emit_sound
Even though it doesn't really matter, what's the reason behind including Fakemeta only for getting/setting origin when Engine has equivalent funtions for that? xD
|
| All times are GMT -4. The time now is 15:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.