Frictional Games Forum (read-only)
Thunder lights ? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Thunder lights ? (/thread-11638.html)



Thunder lights ? - narutohokager - 12-03-2011

Hi everybody Big Grin
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank Wink



RE: Thunder lights ? - Statyk - 12-03-2011

(12-03-2011, 06:21 PM)narutohokager Wrote: Hi everybody Big Grin
So I would like to make thunder as in the beginning of the game when Daniel wake up.
How do that ?
Thank Wink
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?


RE: Thunder lights ? - narutohokager - 12-04-2011

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);

}



RE: Thunder lights ? - Your Computer - 12-04-2011

You don't use SetEntityActive for lights; you have to use SetLightVisible.


RE: Thunder lights ? - Statyk - 12-04-2011

Yes, and I suggest taking the timer down to maybe 0.8f because 1.7 seconds is a pretty long flash for lightning.



RE: Thunder lights ? - narutohokager - 12-04-2011

Thank you, i will do it and I tell you then