GetLockLevel - ObjectReference

From the CreationKit Wiki
Revision as of 22:15, 7 July 2013 by imported>RJHelms84 (Added lock level values for convenience.)
Jump to navigation Jump to search

Member of: ObjectReference Script

Description

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

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

Syntax

int Function GetLockLevel() native

Parameters

None.

Return Value

The level of the lock attached to this object.

Examples

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

See Also