![]() |
[SCRIPT] locked door doesn't work at all - Solved - 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: [SCRIPT] locked door doesn't work at all - Solved (/thread-16063.html) |
locked door doesn't work at all - Solved - Pigsareit - 06-11-2012 Hey there frictionalgamesforum, I've been working on this for a while, and I've taken a look at how other maps have done it, but I can't seem to get unlockable doors to work. Here's what I've got: The code I've got for the door ![]() ![]() I'm guessing it has something to do with the callbacks, but I'm not really getting it, so. Any help is welcome. Thanks, Pigsareit ninja edit: Ok, I think I just realised my mistake after reviewing that. The names dont match up. I cant delete the post cause it says I have yet to be authorized by a mod. so . I ll reply with what happens. ninja edit 2: No, Ok. I updated the tinyurl to the code, I guess I am actually doing something wrong. ninja edit 3: Ok. I fixed it. It was the callbacks. For future refrence: in void OnStart() AddUseItemCallback("", "startroom_key", "startroom_door", "UnlockBedroom_Locked", true); Thanks anyway. ![]() |