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
amnesia level editor key for locked door problem
carlos111897 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Feb 2013
Reputation: 0
#1
amnesia level editor key for locked door problem

Hey guys i just wanted to ask for some help for my custom story. i need help with a key to unlock a specific door. ive written everything on the script but it doesnt seem to work it just says "unable to use on this object" or something like that.
i also wanted to know how to load into different maps such as when entering a door and a loading screen comes up.
So if you know please tell me and thank you in advance.

So heres my script:

////////////////////////////
// Run when entering map
void OnEnter()
{
void AddUseItemCallback("","monsterdoorkey_1", "bedroommansiondoor ", "UsedKeyOnDoor", true);
}

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




And my lang file(i dont know if i need to change it or the directory its ment to be placed in):

</LANGUAGE>


<CATEGORY Name ="Inventory">
<Entry Name="ItemName_monsterdoorkey_1">YourKeyName</Entry>
<Entry Name="ItemDesc_monsterdoorkey_1">"YourKeyDescription"</Entry>
</CATEGORY>

</LANGUAGE>



Thanks guy in advance.
02-19-2013, 03:42 PM
Find


Messages In This Thread
amnesia level editor key for locked door problem - by carlos111897 - 02-19-2013, 03:42 PM



Users browsing this thread: 4 Guest(s)