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_SOUND( ENT(pev), CHAN_WEAPON, "weapons/clipout.wav", 1, ATTN_NORM );
if (m_flDelay == 1)
{
EMIT_SOUND( ENT(pev), CHAN_WEAPON, "weapons/clipin.wav", 1, ATTN_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", 1, ATTN_NORM );