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
Level Editor Help Level Doors
ZIEGMEBALLEN Offline
Junior Member

Posts: 18
Threads: 4
Joined: Feb 2014
Reputation: 1
#1
Level Doors

I just can't seem to unlock go to other levels but the map file for the next level is correct and the start position is correct look:
Text Entry :
LevelDoor1
StartPosition :
PlayerStartArea_1
Map File:
02_Hall.map
Locked :
Checked
LockedTextCat:
Levels
LockedTextEntry:
LevelDoor1

I created a key at my Cs but when i unlock it, and click my level door, nothing happens...
Extra lang file
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name = "CustomStoryMain">
<Entry Name = "Description">You Are a guy who's working as a Janitor in A Mansion Where you woke up alone at 6:30 AM. You discovered that there are monster inside and they don't want you to leave the Mansion. Find A Way to Leave the House without dying.</Entry>

</CATEGORY>
<CATEGORY Name = "Inventory">
<Entry Name = "ItemName_SecondRoomKey_1">Key</Entry>
<Entry Name = "ItemDesc_SecondRoomKey_1">Key</Entry>
<Entry Name = "ItemName_HallKey_1">Hall Key</Entry>
<Entry Name = "ItemDesc_HallKey_1">Key to the Hall</Entry>

</CATEGORY>

<CATEGORY Name = "Levels">
<Entry Name = "LevelName_LevelDoor1">To Hall</Entry>
<Entry Name = "LevelText_LevelDoor1">To the Main Hall</Entry>

</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_A1_Name">Discovering</Entry>
<Entry Name="Note_A1_Text">I Woke up at 6:30 where i discovered that i'm alone.[br][br]I Need to Get out of the house, but... [br][br] I Also discovered something...There...Are....Monsters inside. I Need To Leave now and Get help as i am going to die in this house.. [br][br]Is this my last momment ?</Entry>

</CATEGORY>
</LANGUAGE>

My map hps:

void OnStart()
{
AddEntityCollideCallback("Player", "Script_1", "Teleport1", true, 1);
AddUseItemCallback("", "SecondRoomKey_1", "SecondRoom_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "HallKey_1", "LevelDoor1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("SecondRoom_1", false, true);
SetSwingDoorLocked("LevelDoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "SecondRoom_1", 0, false);
PlaySoundAtEntity("", "unlock_door", "LevelDoor1", 0, false);
RemoveItem("SecondRoomKey_1");
RemoveItem("HallKey_1");
}

void Teleport1(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("TeleportingNG_1", true);
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportingNG_1", 0, false);
AddPropForce("TeleportingNG_1", -10000, 0, 0, "Player");
}
Please help and i will +rep on anyone who can help me
(This post was last modified: 03-28-2014, 09:43 AM by ZIEGMEBALLEN.)
03-28-2014, 09:42 AM
Find


Messages In This Thread
Level Doors - by ZIEGMEBALLEN - 03-28-2014, 09:42 AM
RE: Level Doors - by Mudbill - 03-28-2014, 09:54 AM
RE: Level Doors - by ZIEGMEBALLEN - 03-28-2014, 09:59 AM
RE: Level Doors - by Mudbill - 03-28-2014, 10:00 AM
RE: Level Doors - by ZIEGMEBALLEN - 03-28-2014, 10:03 AM
RE: Level Doors - by Mudbill - 03-28-2014, 10:05 AM
RE: Level Doors - by ZIEGMEBALLEN - 03-28-2014, 10:08 AM



Users browsing this thread: 1 Guest(s)