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
** SOLVED ** Key Doesn't Unlock Door!
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#1
Wink  ** SOLVED ** Key Doesn't Unlock Door!

I created a key, but the key doesn't unlock the door. Here are my files.

HPS FILE: (I know "masion_Door" is spelt wrong)

void OnStart()
{
AddUseItemCallback("", "Key1", "masion_Door", "FUNCTION", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in door)
{
SetLevelDoorLocked("masion_Door", false);
PlayGuiSound("unlock.door.snt", 100);
RemoveItem("item");
}



My extra_english.lang:

<LANGUAGE>
<RESOURCES>
</RESOURCES>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Dare to enter the castle tombs...</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="doorlock1">No need to go back outside...</Entry>
</CATEGORY>

</LANGUAGE>




My key name and door name match the names they have inside the editor.
(This post was last modified: 05-01-2013, 01:46 PM by FurtherGames.)
05-01-2013, 12:14 PM
Find


Messages In This Thread
** SOLVED ** Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 12:14 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 12:49 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 12:54 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:02 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:05 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:09 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:12 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:14 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:16 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:39 PM
RE: Key Doesn't Unlock Door! - by Kullin - 05-01-2013, 01:17 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:19 PM



Users browsing this thread: 1 Guest(s)