Author Topic: How to make a door locked?  (Read 575 times)

Aar

Hello there,

Can somebody tell me how i can make a door locked with a key or a console-printed-brick/lever?
Wich events in which order did i need?

Assuming the default events for a door is onActivate>>Self>>Door>>toggle,
then just add onKeyMatch>>Self>>toggleeventsenabled>>0

so it will be

onActivate>>Self>>Door>>toggle
onKeyMatch>>Self>>toggleeventsenabled>>0

By the way, the onKeyMatch events use the colors of the keys.

By the way, the onKeyMatch events use the colors of the keys.

You can also use onkeymismatch to make your doors a more believable colour (with the downside of every key being able to open it).