IsLockBroken - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Returns whether the lock on this object was broken (or false if there is no lock).

Syntax

bool Function IsLockBroken() native

Parameters

None.

Return Value

If the lock is broken (or false if no lock).

Examples

; Is the door locked?
if (SecurityDoorProperty.IsLockBroken())
  Debug.Trace("Someone broke the lock...")
endIf

See Also