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
Problem with Door Code
Doughnut Boy Offline
Junior Member

Posts: 1
Threads: 1
Joined: Sep 2012
Reputation: 0
#1
Rainbow  Problem with Door Code

Hello everybody. I am currently making my first map and I for the life of me CAN NOT GET THE KEY TO WORK!!! Angry when I pick it up it says "Picked up" and the key has no description. and will not work on the door. I have named the key in the right place and everything. Here is my Coding and lang files.


void OnStart()
{
AddUseItemCallback("", "key_1", "castle_silent.ent", "unlockdoor", true);
}


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

void OnLeave()
{

}


and my extra_English.lang



</LANGUAGE>


<CATEGORY Name ="Inventory">
<Entry Name="ItemName_Key_1">Key</Entry>
<Entry Name="ItemDesc_Key_1">"lawls"</Entry>
</CATEGORY>

</LANGUAGE>



If anyone could help me I would be forever in debt XD Big Grin
09-15-2012, 01:26 AM
Find


Messages In This Thread
Problem with Door Code - by Doughnut Boy - 09-15-2012, 01:26 AM
RE: Problem with Door Code - by Melvin - 09-15-2012, 01:50 AM
RE: Problem with Door Code - by Melvin - 09-15-2012, 11:59 AM



Users browsing this thread: 1 Guest(s)