Frictional Games Forum (read-only)

Full Version: Can you/how can you lock a chest?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
The chests should already have a property "Locked" I believe.

Edit: Which chest? Theirs two of them.
There a chest you can move around and another one where you can open and close.. I think
(06-05-2012, 07:42 PM)Rapture Wrote: [ -> ]The chests should already have a property "Locked" I believe.

Edit: Which chest? Theirs two of them.
chest_small, and both of the chests do not have the option "Locked".
It's SetLeverStuckState, so it's not locked as a door. It functions as a lever
So what am I supposed to set it? Min? Max?
Test it out, mess around with it Smile
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);