Raised This Month: $ Target: $400
 0% 

emit_sound and stop with task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 08-01-2007 , 15:04   Re: emit_sound and stop with task
Reply With Quote #2

Quote:
Originally Posted by regalis View Post
I don't know if there is a better way, but in entity-think you can play the sound and set the next think at the end of the time the sound needs to play!?

Or in emit_sound there is a stop-flag (1<<5) maybe there is a flag for loop the sound!?
PHP Code:
#define SND_STOP (1<<5) 
PHP Code:
emit_sound(g_recharge_id[r], CHAN_WEAPON"HealthArmor-Stations/ArmorRecharge.wav"1.0ATTN_NORMSND_STOPPITCH_NORM); 
I needed this flag because this sound i used loop indefinitely...

greetz regalis

Last edited by potatis_invalido; 08-01-2007 at 15:07.
potatis_invalido is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:24.


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