01-04-2014, 12:11 PM
I made the level door teleport me to another map, but whenever I click on the level door and loads the map it just gets me this error
and it's not the level door that does this error, even when i spawn in the map that the level door takes me too
"FATAL ERROR: Could not load script file 'custom stories/Lifeless_The Abandon/maps/C:/Program Files/Amnesia - Thew Dark Descent/ redist/ custom stories/Lifeless_ The Abandon/maps/ Lieless_The Abandon3.hps'! ExecuteString (1, 1):ERR :No matching signatures to 'onLeave()' main (1,2) :ERR :Expected identifier"
and here is the hps of the level door is supposed to teleport me to
voidOnStart()
{AddUseItemCallback("OpenDoor", "key_tomb_1", "level_celler_1", "UnlockLevelDoor",true);
}
voidOnEnter()
{
}
void UnlockLevelDoor(string &in item, &in entity)
{
SetLevelDoorLocked(Entity, false);
//RemoveItem(item);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and it's not the level door that does this error, even when i spawn in the map that the level door takes me too
"FATAL ERROR: Could not load script file 'custom stories/Lifeless_The Abandon/maps/C:/Program Files/Amnesia - Thew Dark Descent/ redist/ custom stories/Lifeless_ The Abandon/maps/ Lieless_The Abandon3.hps'! ExecuteString (1, 1):ERR :No matching signatures to 'onLeave()' main (1,2) :ERR :Expected identifier"
and here is the hps of the level door is supposed to teleport me to
voidOnStart()
{AddUseItemCallback("OpenDoor", "key_tomb_1", "level_celler_1", "UnlockLevelDoor",true);
}
voidOnEnter()
{
}
void UnlockLevelDoor(string &in item, &in entity)
{
SetLevelDoorLocked(Entity, false);
//RemoveItem(item);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}