05-02-2017, 01:00 PM
Hi guys.
Today I decided make intro to my cs. I make 2 graphic .PNG, and custom in model editor. After this i add blackplane in my map and 2 intro point, and pictures. Like Mudbill in video yt:
https://www.youtube.com/watch?v=C5F5YzStg1o
But something gone wrong. When i open Amnesia and my cs i dont see anything, and after few seconds my character die. Idk what i do wrong, so please for help.
Today I decided make intro to my cs. I make 2 graphic .PNG, and custom in model editor. After this i add blackplane in my map and 2 intro point, and pictures. Like Mudbill in video yt:
https://www.youtube.com/watch?v=C5F5YzStg1o
But something gone wrong. When i open Amnesia and my cs i dont see anything, and after few seconds my character die. Idk what i do wrong, so please for help.
Code:
void OnStart()
{
FadeOut (0);
SetPlayerActive(false);
SetSanityDrainDisabled(true);
ShowPlayerCrossHairIcons(false);
AddTimer("fadein", 3, "TimerIntroOutro");
PlayMusic("in_motion.ogg", false, 1, 0, 1, true);
}
void TimerIntroOutro(string &in asTimer)
{
if(GetLocalVarInt("Intro") < 3) {
if (asTimer == "faidein") {
TeleportPlayer("intro_" + GetLocalVarInt("Intro"));
FadeIn(1);
AddTimer("fadeout", 4, "TimerIntroOutro");
}
if(asTimer == "fadeout") {
FadeOut(1);
AddTimer("faiden", 1, "TimerIntroOutro");
AddLocalVarInt("Intro", 1);
}
}
else
{
TeleportPlayer("PlayerStartArea_1");
FadeIn(2);
SetPlayerActive(true);
SetSanityDrainDisabled(false);
ShowPlayerCrossHairIcons(true);
PlayMusic("in_motion.ogg", false, 0.2, 1, 2, true);
}
}