Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can you/how can you lock a chest?
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#1
Can you/how can you lock a chest?

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?

(This post was last modified: 06-07-2012, 01:55 PM by GrAVit.)
06-05-2012, 06:53 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Can you/how can you lock a chest?

The chests should already have a property "Locked" I believe.

Edit: Which chest? Theirs two of them.
(This post was last modified: 06-05-2012, 07:43 PM by Rapture.)
06-05-2012, 07:42 PM
Find
A.I. Offline
Member

Posts: 114
Threads: 16
Joined: Feb 2012
Reputation: 2
#3
RE: Can you/how can you lock a chest?

There a chest you can move around and another one where you can open and close.. I think

[Image: 1YV6ehh]
Formerly Vaelwing22
06-05-2012, 07:46 PM
Find
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#4
RE: Can you/how can you lock a chest?

(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".

06-05-2012, 07:56 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#5
RE: Can you/how can you lock a chest?

It's SetLeverStuckState, so it's not locked as a door. It functions as a lever

06-05-2012, 08:10 PM
Find
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#6
RE: Can you/how can you lock a chest?

So what am I supposed to set it? Min? Max?

06-05-2012, 09:09 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#7
RE: Can you/how can you lock a chest?

Test it out, mess around with it Smile

06-05-2012, 09:19 PM
Find
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#8
RE: Can you/how can you lock a chest?

Alright, so to lock a chest, one must set the StuckState to Min, and to unlock it, you have to use this script function:
void SetLeverStuckState(string& asName, int alState, bool abEffects);

06-07-2012, 01:55 PM
Find




Users browsing this thread: 2 Guest(s)