Difference between revisions of "GetLockLevel - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Catwheezle
(Added "see also" section items.)
imported>RJHelms84
m (Added lock level values for convenience.)
Line 3: Line 3:
'''Member of:''' [[ObjectReference Script]]
'''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.
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 ==
== Syntax ==

Revision as of 22:15, 7 July 2013

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