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...
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.
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.
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.
ジ
(This post was last modified: 05-19-2011, 03:28 AM by Acies.)