Frictional Games Forum (read-only)

Full Version: Help,
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
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()
True lazzer.
it is OR fadIN OR FadeOut.
Both wil not work.
Only with a timer added.