My map won't load. It doesn't come up with ANY errors. It just crashes.
It can't be the size of the map. I've played over 1mb maps and mine's only 517kb
Please help!
Is it my script? Is it too big?
////////////////////////////
//Run when entering map
void OnStart()
{
SetLevelDoorLocked("LevelDoor_1", true);
SetLevelDoorLockedSound("LevelDoor_1", "door_prison_locked.snt");
SetMessage("BeginningOfHorror", "Arrival", 0);
AddQuest("", "Quest2");
SetEntityPlayerInteractCallback("SuicideRoom_1", "SuicideRoomQuest", true);
AddEntityCollideCallback("Player", "QuestArea_1", "CollideQuests", true, 1);
AddEntityCollideCallback("Player", "CompleteRoomQuest_1", "CollideCompleteQuest", true, 1);
SetEntityPlayerInteractCallback("Note04", "NoteQuest", true);
SetEntityPlayerInteractCallback("SuicideRoomKey_1", "KeyMessage". true);
AddUseItemCallback("" ,"SuicideRoomKey_1", "SuicideRoom_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "LevelDoorKey_1", "LevelDoor_1", "LevelDoorUnlocked", true);
}
////////////////////////////
//Run when entering map
void OnEnter()
{
}
////////////////////////////
//Run when leaving map
void OnLeave()
{
SetupLoadScreen("LoadingText", "Underpass", 1, "");
CompleteQuest("", "Quest2");
}
////////////////////////////////////////////////////////////////////////////
//Item Callbacks
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("SuicideRoom_1", false, true);
CompleteQuest("", "Quest4");
PlaySoundAtEntity("", "unlock_door.snt", "LevelDoor_1", 0, false);
}
void LevelDoorUnlocked(string &in asItem, string &in asEntity)
{
SetlevelDoorLocked("LevelDoor_1", false);
///////////////////////////////////////////
//Entity Callbacks//Interact//
void SuicideRoomQuest(string &in asEntity)
{
AddQuest("", "Quest4");
}
void NoteQuest(string &in asEntity)
{
AddQuest("", "Quest3");
}
void KeyMessage(string &in asEntity)
{
SetMessage("BeginningOfHorror", "KeyPickup", 0);
}
////////////////////////////////////////
//Collision Areas//
void CollideQuests(string &in asParent, string &in asChild, int alState)
{
AddQuest("", "Quest2");
}
void CollideCompleteQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("", "Quest3");
}