Background for Skyrim SE
Member of the ObjectReference script
voidfunctionSetLockLevel(intaiLockLevel)Native

Description

Wiki Description

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

Documentation Comment

Sets the lock level on this object. Will add an unlocked lock to it if it doesn't have one


Caveats


Parameters

intaiLockLevel

CK Wiki Description

The level to set the lock at.

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

Examples

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

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

Auto-Generated Example

int myInt__aiLockLevel

myObjectReference__toCallFunctionOn.SetLockLevel(myInt__aiLockLevel)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.