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
NEED HELP AMNESIA ERROR!!
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#1
NEED HELP AMNESIA ERROR!!

Hi my Amnesia crashes and gives me an error when i try to load my map. It gives me the number 41.2, which I assume is the last line in my file. it also says, "unexpected ending of file." please, whats wrong with my file?


//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "key_5", "door_5", "UsedKeyOnDoor5", true);
SetEntityPlayerInteractCallback("key_5, "ActivateMonster", true);
}
//KEYS THAT UNLOCK DOORS
void UsedKeyOnDoor5(string &in item, string &in door)
{
SetSwingDoorLocked("door_5", false, true);
PlaySoundAtEntity("", "unlock_door", "door_5", 0, false);
RemoveItem("key_5");
}

//THINGS THAT HAPPENS TO DOORS
void ExplodeDoor(string &in asParent, string &in asChild, int alState)
{
}

//ACTIVATE MONSTERS
void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNode_1, 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNode_2, 0, "Idle");
}

//===========================================
// This runs when the player enters the map
void OnEnter()
{
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
03-29-2012, 05:23 PM
Find Reply


Messages In This Thread
NEED HELP AMNESIA ERROR!! - by Wapez - 03-29-2012, 05:23 PM
RE: NEED HELP AMNESIA ERROR!! - by Tanshaydar - 03-29-2012, 05:30 PM
RE: NEED HELP AMNESIA ERROR!! - by Wapez - 03-29-2012, 06:46 PM



Users browsing this thread: 1 Guest(s)