Frictional Games Forum (read-only)
Help, - 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)
+--- Thread: Help, (/thread-25988.html)



Help, - Catalyst - 08-29-2014

Hello everyone,
I need a suggestion,how to stop image fadding, I just maked player lying down and it stand up and image has faded.Its normal but how to stop fadding?
I know how to use timer, but don't know the fade stop function.Help

Thanks.There is the script

void OnStart()
{
PlayMusic("map_01.ogg", true, 0.5, 6, 1, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
SetPlayerActive(false);
SetPlayerCrouching(true);
SetPlayerHealth(10);
StartPlayerLookAt("LookArea", 3, 6, "StopPlayerLookAt");
FadeOut(0);
FadeIn(3);
AddTimer("", 3, "Intro");
SetPlayerJumpDisabled(true);
SetPlayerMoveSpeedMul(0.35f);
SetPlayerRunSpeedMul(0);
SetPlayerLampOil(0);
}


RE: Help, - Slanderous - 08-29-2014

As far as I remember, you can't have both FadeIn and FadeOut in your scripts. You need to put a timer that triggers FadeIn. Put that timer in your void OnStart()


RE: Help, - DnALANGE - 08-29-2014

True lazzer.
it is OR fadIN OR FadeOut.
Both wil not work.
Only with a timer added.