Frictional Games Forum (read-only)
Fake lightning - 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: Fake lightning (/thread-14360.html)



Fake lightning - JetlinerX - 03-30-2012

Is it possible to turn OFF a dark box light, turn ON a light box light, then turn OFF the light box light, and turn ON the dark one, to make an effect that would look like lightning?

Just wondering before I start scripting it, dont want to waste time if it isn't possible. Thanks all! Big Grin




RE: Fake lightning - Obliviator27 - 03-30-2012

You could use FadeLightTo, coupled with some timers for one boxlight
OR
Use SetLightVisible, coupled with some timers, to activate and deactivate each boxlight.



RE: Fake lightning - JetlinerX - 03-30-2012

I've never used those scripts, so would it be just a

SetLightVisible (true), Timer for 0.1f, SetLightVisible (false)?

----

EDIT: Any timer set under 1.0f does not seem to trigger, help?


----

JK, everything is working, just had to restart the game. Thanks Obv. + feeback for you good sir! Big Grin



RE: Fake lightning - Your Computer - 03-31-2012

You'd have more flexibility with the flickering feature of the lights.


RE: Fake lightning - JetlinerX - 03-31-2012

O_O Applied flicker... and fainted at the awsomeness. <3 Thank you!