I always restart the game
Now that i have you here i dont if you can help. it says that that something is wrong in line 51 in my script file like I miss a semi-colon, but i cant find any error
void OnStart()
{
//WakeUpScript Start
SetPlayerActive(false);
FadeOut(0);
FadePlayerRollTo(65, 20, 20);
MovePlayerHeadPos(-1, -0.45, -1.1, 20, 1);
FadeImageTrailTo(3, 1);
FadeRadialBlurTo(0.4, 1);
AddTimer("activate_player", 3, "FadeIn");
//WakeUpScript End
//Interacting With Bed
SetEntityPlayerInteractCallback("SleepArea", "Sleep", false);
}
//WakeUpScript Start
void FadeIn(string &in timer_name)
{
FadeIn(2);
AddTimer("MoveHead", 2, "WakeUp");
}
void WakeUp(string &in timer_name)
{
if (timer_name == "MoveHead")
{
FadeImageTrailTo(0, 1);
FadeRadialBlurTo(0, 1);
MovePlayerHeadPos(-0.5, -0.2, -1.1, 2, 2);
FadePlayerRollTo(0, 1.7, 500);
AddTimer("ActivatePlayer", 2, "WakeUp");
}
else if (timer_name == "ActivatePlayer")
{
MovePlayerHeadPos(0, 0, 0, 2, 2);
SetPlayerActive(true);
if (GetGlobalVarInt("SleepPoint") == 0)
{
SetMessage("Dialogs", "WakedUpByNoise", 0);
}
else if (GetGlobalVarInt("SleepPoint") == 1)
{
SetMessage("Journal", "Sleep1", 0);
}
else if (GetGlobalVarInt("SleepPoint") => 2)
{
SetMessage("Journal", "Sleep2", 0);
}
}
}
//WakeUpScript End
//Sleep Start
void Sleep(string &in asEnity)
{
SetPlayerActive(false);
AddGlobalVarInt("SleepPoints", 1);
StartPlayerLookAt("SleepLookAtArea", 5, 5, "");
FadeOut(3);
AddTimer("", 3, "teleportplayer");
}
void teleportplayer(string &in asTimer)
{
TeleportPlayer("PlayerStartArea_1");
FadePlayerRollTo(65, 20, 20);
MovePlayerHeadPos(-1, -0.45, -1.1, 20, 1);
FadeImageTrailTo(3, 1);
FadeRadialBlurTo(0.4, 1);
AddTimer("", 3, "FadeIn");
}
//Sleep End
void OnEnter()
{
}
void OnLeave()
{
}