Heres my script:
void OnStart()
{
AddTimer("thunder_light_start", 10, "thunder_light_start");
}
///TIMERS
void thunder_light_start(string &in asTimer)
{
AddDebugMessage("Starting Thunder", false);
StartEffectFlash(0, 1, 5);
AddTimer("thunder_sound_start", 4, "thunder_sound_start");
}
void thunder_sound_start(string &in asTimer)
{
PlaySoundAtEntity("thunder_sound", "general_thunder", "Player", 0.5f, false);
AddTimer("thunder_light_start", 20, "thunder_light_start");
}
And the video:
http://www.youtube.com/watch?v=g-10IeeTr...e=youtu.be
Trying is the first step to success.