Can I get the real state of the door lock?

I know that you can set a new state of the castle through “ent:Fire(‘Lock’)”. But is there a way to get the value of this variable?


Thanks a lot for your answer. :slightly_smiling_face:

1 Like

Be careful, there may be different variables depending on the door type. :wink:

1 Like

Make sure to get the door entity using this:

It will always give you the entity you’re looking for, it’s what I used to check when a hatch is open in this video: