IsLockBroken - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

bool Function IsLockBroken() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]