SetLockLevel - ObjectReference

From the CreationKit Wiki
Revision as of 21:20, 5 September 2026 by HoodBot (talk | contribs) (Convert source tags to syntaxhighlight)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets the level of the lock attached to this object. If there is no lock, it will attach one, but leave it unlocked.

Syntax[edit | edit source]

Function SetLockLevel(int aiLockLevel) native

Parameters[edit | edit source]

  • aiLockLevel: The level to set the lock at.
    • 1 = Novice
    • 25 = Apprentice
    • 50 = Adept
    • 75 = Expert
    • 100 = Master
    • 255 = Requires Key

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Set the lock to very easy
WeakChestProperty.SetLockLevel(0)

; Set the lock to needs key
WeakChestProperty.SetLockLevel(255)

See Also[edit | edit source]