GetLockLevel

From the CreationKit Wiki
Jump to navigation Jump to search

GetLockLevel returns an integer representing the lock level of a locked door, container, or hinge trap. Possible values are:

  • 0 = Novice
  • 25 = Apprentice
  • 50 = Adept
  • 75 = Expert
  • 100 = Master
  • 255 = Requires Key


All doors and containers have a lock level, set on their reference.

  • By default, an object's lock level is 0 (Novice).
  • The lock level of an object persists even if the object is currently unlocked.
    • For example, in cities, most shops are locked at night, and unlocked during the day. GetLockLevel will return the same value (the nighttime lock level) regardless of the time of day.
  • This command will not tell you whether a door is currently locked or not. For that, use GetLocked.


Syntax[edit | edit source]

DoorRef.GetLockLevel

See Also[edit | edit source]

Papyrus Version[edit | edit source]