IsLocked - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Checks to see if this object is currently locked. If no lock is attached, returns false.
bool Function IsLocked() native
If this object is currently locked.
; Is the door locked? if (SecurityDoorProperty.IsLocked()) Debug.Trace("The door is locked") endIf