Frictional Games Forum (read-only)
StartEffectFlash syntax incorrect? - 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: StartEffectFlash syntax incorrect? (/thread-23458.html)



StartEffectFlash syntax incorrect? - Damascus - 10-01-2013

If this question has been asked before, apologies, I ran a search and didn't find any mention of it before.

The wiki says this is the syntax for StartEffectFlash: (float afFadeIn, float afWhite, float afFadeOut);

However, the last float seems to control both the fade-in and fade-out and the other two floats don't seem to do anything at all. I'm trying to get the screen to fade completely to white in 5 seconds and then turn back to normal instantly. So what's the problem with this?


RE: StartEffectFlash syntax incorrect? - Your Computer - 10-01-2013

That function has always worked like that as far as i've known it. If you don't mind the slight darkness in the beginning, you can try:
PHP Code:
FadeOut(0);
StartEffectFlash(050);
FadeIn(5); 



RE: StartEffectFlash syntax incorrect? - Damascus - 10-03-2013

I tried that, but the screen goes instantly white, lasts for 5 seconds, and then instantly goes back to normal again. So there doesn't seem to be any way to have different times for fading in and out?