05-20-2012, 06:41 PM
Yea so i have the timer:
void cry_1_timer(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry", "mansion_5", 0.5f, false);
AddTimer("girl_cry", 40, "cry_1_timer");
}
This timer triggers itself
This next script should remove the timer, but instead, nothing happens. The girl keeps crying.
void girl_flee_stop_timer(string &in asTimer)
{
PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false);
RemoveTimer("girl_cry");
StopSound("12_girl_cry", 0);
}
Why won't it stop?
The PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false); is working fine!
It's only the timer that doesn't stop
void cry_1_timer(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry", "mansion_5", 0.5f, false);
AddTimer("girl_cry", 40, "cry_1_timer");
}
This timer triggers itself
This next script should remove the timer, but instead, nothing happens. The girl keeps crying.
void girl_flee_stop_timer(string &in asTimer)
{
PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false);
RemoveTimer("girl_cry");
StopSound("12_girl_cry", 0);
}
Why won't it stop?
The PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false); is working fine!
It's only the timer that doesn't stop