The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
I need help with my Custom Story!
mrburritos31 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jun 2013
Reputation: 0
#1
I need help with my Custom Story!

So here is my Intro Map Script, i'm trying to add a "Wake Up Effect" But when i try to launch my Custom Story it crashes! Any Suggestions?
void OnStart()
{
SetPlayerActive(false);
FadeOut(0);
//FadePlayerRollTo(65, 20, 20);
MovePlayerHeadPos(-1, -0.45, -1.1, 20, 1);
AddTimer("activate_player", 3, "FadeIn");
SetLightVisible("BoxLight_1", false);
SetPlayerSanity(50);
AddUseItemCallback("OpenDoor", "MedicalKey", "level_wood_1", "UnlockLevelDoor", true);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
void UnlockLevelDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
GiveSanityBoostSmall();
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
void OnLeave()
{
SetupLoadScreen("Loading","LoadScreen1",0,"LoadScreenImage1.jpg");
}
////////////////////////////////////////////////////////////////////////////////////////
void FadeIn(string &in timer_name)
{
FadeIn(2);
AddTimer("Start", 2, "WakeUp");
}
void WakeUp(string &in timer_name)
{
if (timer_name == "Start")
{
SetLightVisible("Box_Light_1", true);
AddTime("MoveHead", 1, "WakeUp");
}
else if (timer_name == "MoveHead")
{
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);
}
}
}
03-22-2014, 04:18 AM
Find


Messages In This Thread
I need help with my Custom Story! - by mrburritos31 - 03-22-2014, 04:18 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:24 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:32 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:38 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:41 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:48 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 04:50 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 05:04 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 05:10 AM
RE: I need help with my Custom Story! - by Vale - 03-22-2014, 05:15 AM



Users browsing this thread: 1 Guest(s)