Frictional Games Forum (read-only)
How to enter level hub door when you unlock it? (SOLVED) Delete thread if you want! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: How to enter level hub door when you unlock it? (SOLVED) Delete thread if you want! (/thread-5903.html)



How to enter level hub door when you unlock it? (SOLVED) Delete thread if you want! - HumiliatioN - 12-26-2010

Yep i have problem I have level door and its locked and it only unlocks when you use key! Well... i can hear the door sound when its locked then when i use key to hear unlock sound but problem is "Why i cant enter level door then?"

Door script:

AddUseItemCallback("", "Prison Entrance Key", "level_celler_1", "KeyOnDoor3", true);

void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_1", false, true);
RemoveItem("Prison Entrance Key");
PlaySoundAtEntity("", "unlock_door.snt", "level_celler_1", 0.0f, true);
}