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
Entity unlock
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#11
RE: Entity unlock

I know the desk door and door-like entities can be locked, I was just wondering about drawers or other items. Then and again, it probably would be simpler to just use the desk door, but just in case...
05-17-2011, 10:08 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#12
RE: Entity unlock

Try SetPropObjectStuckState(string& asName, int alState); setting alState to 0. It will still be interactive though, so you can try SetEntityInteractionDisabled(string& asName, bool abDisabled); to make it static.

05-17-2011, 10:13 PM
Find
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#13
RE: Entity unlock

Stuck state? what's that do?
05-17-2011, 10:58 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#14
RE: Entity unlock

Hm maybe you can make the drawers static so you cant interact with them at all and add a script over it so when you click it says "stuck" or something. then when you use an item on it, the static gets replaced with an drawer_entity.

(This post was last modified: 05-18-2011, 12:49 AM by Rownbear.)
05-18-2011, 12:49 AM
Find
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#15
RE: Entity unlock

That's the problem: selecting individual drawers. I have no idea how you would do that.
05-19-2011, 01:48 AM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#16
RE: Entity unlock

You'd have to edit the desk in modeleditor. If you want some drawers locked and some not you would have to make them all separate entities.
05-19-2011, 01:52 AM
Find
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#17
RE: Entity unlock

Interesting.

Well, it's not that big of a problem, I was just wondering if there was a simple solution.
05-19-2011, 03:15 AM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#18
RE: Entity unlock

There is a simple solution. Add an interactable area covering the desk's drawer. The player won't be able to click the drawer, he will interact with the area. Upon interaction add a locked sound and a locked message. That is how I locked a chest in belphegor.
Edit: Simply use precision in the case of several drawers.

[Image: mZiYnxe.png]


(This post was last modified: 05-19-2011, 03:28 AM by Acies.)
05-19-2011, 03:27 AM
Find
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#19
RE: Entity unlock

whooaa.... now that's thinking. Smile

I bet there are other interesting applications for that. Thanks for the help Big Grin
05-19-2011, 09:22 PM
Find




Users browsing this thread: 2 Guest(s)