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
Amnesia script crashing
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#1
Amnesia script crashing

Hello so this is my script. It worked before but now when i added some backround sound it crashes when triggering an enemy and 2 walls with an areabox: These are just the relevant parts of my script:

// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "monhal", "monhals", true, 1);
AddEntityCollideCallback("Player", "korridor", "bana", true, 1);
AddUseItemCallback("", "secret_key", "secret_door", "SECRET", true);
AddEntityCollideCallback("Player", "servant_grunt_1", "MonsterAway", true, 1);
PlayMusic("creep.ogg", false, 1, 1, 1, true);
}



void bana(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("osynlig", true);
SetEntityActive("synlig", false);
SetEntityActive("servant_grunt_2", true);
}
08-24-2014, 07:26 PM
Find


Messages In This Thread
Amnesia script crashing - by theodorg - 08-24-2014, 07:26 PM
RE: Amnesia script crashing - by Neelke - 08-24-2014, 07:28 PM
RE: Amnesia script crashing - by Radical Batz - 08-24-2014, 07:29 PM
RE: Amnesia script crashing - by theodorg - 08-24-2014, 07:31 PM
RE: Amnesia script crashing - by Radical Batz - 08-24-2014, 07:39 PM
RE: Amnesia script crashing - by Radical Batz - 08-24-2014, 07:36 PM
RE: Amnesia script crashing - by theodorg - 08-24-2014, 07:40 PM
RE: Amnesia script crashing - by Radical Batz - 08-24-2014, 07:45 PM
RE: Amnesia script crashing - by Neelke - 08-24-2014, 07:36 PM
RE: Amnesia script crashing - by Neelke - 08-24-2014, 07:44 PM



Users browsing this thread: 1 Guest(s)