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
Script Unlocking Door [HELP]
wretic91 Offline
Junior Member

Posts: 21
Threads: 11
Joined: Jan 2012
Reputation: 0
#1
Script Unlocking Door [HELP]

Hello,

ok so.. i got the key working with all the names and things... problem is.. i cant unlock the door now.. i will place my .HPS file and .lang file here..maybe you can guys help me out !

HPS FILE
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "Housedoorkey", "housedoor", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("housedoor", false, true);
PlaySoundAtEntity("", "unlock_door", "housedoor", 0, false);
RemoveItem(Housedoorkey);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

---------------------------------------------------------

.LANG file

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description"> A young adult searching for his missing dad ENJOY!!</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_Housedoorkey">"Our main key of our House"</Entry>
<Entry Name="ItemName_Housedoorkey">" Main House key"</Entry>

</CATEGORY>

</LANGUAGE>

Wretic.
01-30-2012, 07:32 PM
Find


Messages In This Thread
Script Unlocking Door [HELP] - by wretic91 - 01-30-2012, 07:32 PM
RE: Script Unlocking Door [HELP] - by trollox - 01-30-2012, 07:35 PM
RE: Script Unlocking Door [HELP] - by wretic91 - 01-30-2012, 07:39 PM
RE: Script Unlocking Door [HELP] - by trollox - 01-30-2012, 08:04 PM
RE: Script Unlocking Door [HELP] - by wretic91 - 01-30-2012, 08:16 PM
RE: Script Unlocking Door [HELP] - by trollox - 01-30-2012, 08:52 PM



Users browsing this thread: 1 Guest(s)