I followed this video:
http://www.youtube.com/watch?v=ABI7NUqkX...re=related
and my key doesnt work.
hps file:
////////////////////////////
// Run when entering map
void OnEnter()
{
Haha there was space at my key name
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_1");
}
extra english lang:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">Cellar Key</Entry>
<Entry Name="ItemDesc_key1">This key looks rusty and old.</Entry>
</CATEGORY>
</LANGUAGE>
When i pick up key, it says: "Picked up Cellar key" like it should say, and when i use it door: "Cannot use item this way"
Help please..