×
Fallout Wiki
☢  Independent Fallout Wiki Resources  Vault logo

GetLockLevel - ObjectReference

Resource:Creation Kit > GetLockLevel - ObjectReference


Member of: ObjectReference Script

Returns the level of the lock attached to this object. If there is no lock, it will return 0 - very easy.

Syntax[edit]

int Function GetLockLevel() native

Parameters[edit]

None.

Return Value[edit]

The level of the lock attached to this object.

  • 0 = Unlocked
  • 25 = Novice
  • 50 = Advanced
  • 75 = Expert
  • 100 = Master
  • 251 = Barred
  • 252 = Chained
  • 253 = Terminal Only
  • 254 = Inaccessible
  • 255 = Requires Key

Examples[edit]

; Is the lock very easy?
if (WeakChestProperty.GetLockLevel() == 0)
  Debug.Trace("Lock is very easy")
endIf

See Also[edit]