Frictional Games Forum (read-only)

Full Version: Level door help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Use SetLevelDoorLocked(string& asName, bool abLocked);
(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);?
You will need that to unlock the door. You probably copied the normal unlock function that someone made around here in the forum.
(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