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
Script Help Please!
EthanLancaster Offline
Junior Member

Posts: 15
Threads: 9
Joined: Mar 2012
Reputation: 0
#1
Script Help Please!

I have been trying to make it to were you get in an elevator and it automatically puts you in the next map. I have been looking at the script all day and I cant find the error. There is no error message. It doesnt do anything. Please help!

void OnStart ()
{
AddUseItemCallback("", "OldWineCellarKey", "metal_4", "KeyOnDoor", true);
}

void scareactivate2(string &in asParent , string &in asChild , int alState)
{

SetEntityActive("Monster 1" , true);
AddEnemyPatrolNode("Monster 1", "PathArea_1", 0.0f, "true");
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("metal_4", false, true);
PlaySoundAtEntity("", "unlock_door", "metal_4", 1, false);
RemoveItem("OldWineCellarKey");
GiveSanityBoostSmall();
PlayGuiSound("react_breath_slow", 0.5f);
}

void toalone_in_the_dark_cellar(string &in asParent, string &in asChild, int alState)
{
ChangeMap("alone_in_the_dark_cellar.map", "from_02", "", "");
}

void OnLeave()
{
SetupLoadScreen("LoadingText", "alone_in_the_dark_1st_floor", 0, "alone_in_the_dark_1st_floor.jpg");
}
04-01-2012, 07:39 PM
Find


Messages In This Thread
Script Help Please! - by EthanLancaster - 04-01-2012, 07:39 PM
RE: Script Help Please! - by Putmalk - 04-01-2012, 07:45 PM
RE: Script Help Please! - by Strembitsky - 04-01-2012, 08:17 PM
RE: Script Help Please! - by Putmalk - 04-01-2012, 08:27 PM



Users browsing this thread: 1 Guest(s)