Frictional Games Forum (read-only)
Level door help - 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: Level door help (/thread-7042.html)



Level door help - Itskody - 03-25-2011

In my first area of my custom story, i have 2 level doors that you can go to, 1 is locked and the other you can go through. the key to the locked door is through the unlocked level door, but when i get the key and come back to unlock it, it "unlocks" but the door doesnt seem to send me to the next map, it still appears to be locked. why is that?


RE: Level door help - Pandemoneus - 03-25-2011

Use SetLevelDoorLocked(string& asName, bool abLocked);


RE: Level door help - Itskody - 03-25-2011

(03-25-2011, 01:36 AM)Pandemoneus Wrote: Use SetLevelDoorLocked(string& asName, bool abLocked);

Do that instead of have the "Locked" box checked? the level door is called door 2 so it would just be SetLevelDoorLocked("door2", true);?


RE: Level door help - Pandemoneus - 03-25-2011

You will need that to unlock the door. You probably copied the normal unlock function that someone made around here in the forum.


RE: Level door help - Itskody - 03-25-2011

(03-25-2011, 12:30 PM)Pandemoneus Wrote: You will need that to unlock the door. You probably copied the normal unlock function that someone made around here in the forum.

No i didnt use a script for it, i just checked the "Locked" box in the level editor, worked for all the other doors, but thanks ill see if it solves my problem