SetLockLevel - ObjectReference

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

Member of: ObjectReference Script

Description

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

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

Syntax

Function SetLockLevel(int aiLockLevel) native

Parameters

  • aiLockLevel: The level to set the lock at.

Return Value

None.

Examples

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

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

See Also