I have a new problem with my basement map and the key not unlocking the storage door here is my hps and lang please help.
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Storage_Key", "storage_1", "UseKeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("storage_1", false);
PlaySoundAtEntity("", "unlock_door", "storage_1", 0, false);
RemoveItem("Storage_Key");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
[<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Escape The Curse!</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_House Key">House Key</Entry>
<Entry Name="ItemDesc_House Key">Key to my Study Door</Entry>
<Entry Name="ItemName_Basement Key">Basement Key</Entry>
<Entry Name="ItemDesc_Basement Key">Key to my Basement</Entry>
<Entry Name="ItemName_Storage Key">Storage Key</Entry>
<Entry Name="ItemDesc_Storage Key">Key to the Storage</Entry>
<Entry Name="ItemDesc_Glowstick">Thank God I brought this with me. I have to press $ButLantern to turn it on, and $ButLantern to turn it off again. It's electric, so it's powered by batteries.</Entry>
<Entry Name="ItemName_Glowstick">Glowstick</Entry>
<Entry Name="ItemName_Battery">Battery</Entry>
<Entry Name="ItemDesc_Battery">Battery for my Glowstick.</Entry>
</CATEGORY>
<CATEGORY Name="PreMenu">
<Entry Name="WelcomeMessage01">Welcome to The Curse! This Total Conversion mod is about a simple man who likes to study but one day you visit your neighbour and find a terrifying secret about him.</Entry>
<Entry Name="WelcomeMessage02">As you visit your neighbour you wonder why his door is open so you go inside to see if he is okay but you should have really just walked away.</Entry>
<Entry Name="WelcomeMessage03">Like always, any Amnesia total conversion is best played at a low gamma. Please take this opportunity to change your screens brightness and contrast.</Entry>
<Entry Name="WelcomeMessage04">Please change your gamma to a setting you feel comfortable with.</Entry>
<Entry Name="WelcomeMessage05">That's all you gotta do now enjoy playing The Curse!</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">The Curse[br]Made By:XxWestKillzXx[br]Thanks To:XxRoCkBaNdMaNxX and Statyk for helping with the scripting/models/sounds [br]Models: [br]Glowstick By Statyk [br]Sounds: [br]Glowstick By XxRoCkBaNdMaNxX [br]Thanks To: Frictional Games for Amnesia.Hope You Enjoyed Playing [br]</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="Basement">Basement</Entry>
<Entry Name="Outside">Outside</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="A">I need my keys I think I dropped them in the Storage.</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Quest_LockedLvL_Text">Damn I must have lost my keys yesterday in the storage...I better go get them.</Entry>
</CATEGORY>
</LANGUAGE>