Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED CS Wont show up
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#13
RE: CS Wont show up

I always restart the game Wink

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()
{

}

CURRENT PROJECT:
A Fathers Secret == Just started
01-11-2017, 03:40 PM
Find


Messages In This Thread
SOLVED CS Wont show up - by Lizard - 01-10-2017, 07:15 PM
RE: CS Wont show up - by 7heDubz - 01-10-2017, 08:03 PM
RE: CS Wont show up - by Lizard - 01-10-2017, 08:06 PM
RE: CS Wont show up - by Mudbill - 01-10-2017, 10:11 PM
RE: CS Wont show up - by Lizard - 01-11-2017, 12:23 AM
RE: CS Wont show up - by Mudbill - 01-11-2017, 02:41 AM
RE: CS Wont show up - by Lizard - 01-11-2017, 11:19 AM
RE: CS Wont show up - by Mudbill - 01-11-2017, 11:37 AM
RE: CS Wont show up - by Lizard - 01-11-2017, 12:01 PM
RE: CS Wont show up - by FlawlessHappiness - 01-11-2017, 03:08 PM
RE: CS Wont show up - by Lizard - 01-11-2017, 03:33 PM
RE: CS Wont show up - by FlawlessHappiness - 01-11-2017, 03:36 PM
RE: CS Wont show up - by Lizard - 01-11-2017, 03:40 PM
RE: CS Wont show up - by FlawlessHappiness - 01-11-2017, 05:21 PM
RE: CS Wont show up - by Lizard - 01-11-2017, 05:44 PM



Users browsing this thread: 1 Guest(s)