Can you/how can you lock a chest? - 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: Can you/how can you lock a chest? (/thread-15874.html) |
Can you/how can you lock a chest? - GrAVit - 06-05-2012 Hey, I'd like to know if you can or how you can lock a chest. I believe it's a "lever" instead of a "door" so there's not a Locked checkbox. I've seen this done in some custom stories, but I can't recall which. I also couldn't find a matching thread anywhere else. Is there any workaround for this, if you cannot lock it by any setting? RE: Can you/how can you lock a chest? - Rapture - 06-05-2012 The chests should already have a property "Locked" I believe. Edit: Which chest? Theirs two of them. RE: Can you/how can you lock a chest? - A.I. - 06-05-2012 There a chest you can move around and another one where you can open and close.. I think RE: Can you/how can you lock a chest? - GrAVit - 06-05-2012 (06-05-2012, 07:42 PM)Rapture Wrote: The chests should already have a property "Locked" I believe.chest_small, and both of the chests do not have the option "Locked". RE: Can you/how can you lock a chest? - SilentStriker - 06-05-2012 It's SetLeverStuckState, so it's not locked as a door. It functions as a lever RE: Can you/how can you lock a chest? - GrAVit - 06-05-2012 So what am I supposed to set it? Min? Max? RE: Can you/how can you lock a chest? - SilentStriker - 06-05-2012 Test it out, mess around with it RE: Can you/how can you lock a chest? - GrAVit - 06-07-2012 Alright, so to lock a chest, one must set the StuckState to Min, and to unlock it, you have to use this script function: Code: void SetLeverStuckState(string& asName, int alState, bool abEffects); |