How to make a key open a level door? - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: How to make a key open a level door? (/thread-17472.html) |
How to make a key open a level door? - taz251 - 08-04-2012 I have a key that unlocks a level door, but when it does the door still remains locked? Here is the script I have. AddUseItemCallback("", "level_key", "level_dungeon_1", "OpenLevel", true); } void OpenLevel(string &in asItem, string &in asEntity) { SetSwingDoorLocked("", false, true); PlaySoundAtEntity("", "unlock_door", "level_dungeon_1", 0, false); RemoveItem("level_key"); } RE: How to make a key open a level door? - Kazakarumariou - 08-04-2012 SetLevelDoorLocked("level_dungeon_1", false); RE: How to make a key open a level door? - taz251 - 08-04-2012 (08-04-2012, 01:11 AM)Harthex Wrote: SetLevelDoorLocked("level_dungeon_1", false);Thanks a lot. Do I replace it with SetSwingDoorLocked? Or just add it on. RE: How to make a key open a level door? - Kazakarumariou - 08-04-2012 Yeah, replace it. |