Thread: Delay
View Single Post
Delay
Old
  (#1)
Bend3R
Member
 
Status: Offline
Posts: 50
Join Date: Jun 2005
Default Delay - 05-06-2010

Have not use delay before, but now I'm in need of it.
This one compiles fine, but it do not work. It just play "clipin.wav" sound.
clipin.wav is supposed to be the second one with 1 sec delay after the first one (clipout.wav).

PHP Code:
case RELOAD:
EMIT_SOUNDENT(pev), CHAN_WEAPON"weapons/clipout.wav"1ATTN_NORM );

if (
m_flDelay == 1)
{
   
EMIT_SOUNDENT(pev), CHAN_WEAPON"weapons/clipin.wav"1ATTN_NORM );
}
break; 
Also, I would like this one to play 5 times with 1 sec after each playtime:
PHP Code:
EMIT_SOUND(ENT(pev), CHAN_WEAPON"weapons/1.wav"1ATTN_NORM ); 
  
Reply With Quote