Hi everybody
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank
(12-03-2011, 06:21 PM)narutohokager Wrote: [ -> ]Hi everybody
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank
It's a little hard to explain, though I made recurring lightning in my custom menu background. Are you trying to script one or two flashes, or will it be constant?
With SetEntityActive you want say ?
Like this :
Quote:Vois OnStart()
{
SetEntityActive("SpotLight_1", true);
AddTimer("", 1.2f, "ThunderOff");
}
void ThunderOff(string &in asTimer)
{
SetEntityActive("SpotLight_1", false);
}
You don't use SetEntityActive for lights; you have to use SetLightVisible.
Yes, and I suggest taking the timer down to maybe 0.8f because 1.7 seconds is a pretty long flash for lightning.
Thank you, i will do it and I tell you then