Hello everyone,
I have a small problem in my Amnesia Custom Story. I have placed a Hammer (name = "TheHammer") in TheEntry.map and I want to use it to open an door in Hall.map.
My Script: Hall.hps
void OnStart()
{
AddUseItemCallback("", "TheHammer", "CellarDoor", "DestroyDoor", true);[...]
}
void DestroyDoor ()
{
SetMessage("Messages", "A11_Door", 0);
PlaySoundAtEntity("", "break_wood.snt", "Player", 0, false);
SetSwingDoorLocked("CellarDoor", false, false);
AddPlayerSanity(8);
}
The Problem is: Nothing happens when I use the Hammer on the Door. When I use it a 2nd time it says "This item is useless for this situation".
I hope you can help me.
Thanks in advance.