SetLockLevel - ObjectReference

From the Fallout4 CreationKit Wiki
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.

  • 0 = Unlocked
  • 25 = Novice
  • 50 = Advanced
  • 75 = Expert
  • 100 = Master
  • 251 = Barred
  • 252 = Chained
  • 253 = Terminal Only
  • 254 = Inaccessible
  • 255 = Requires Key

Return Value[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • As with SetLockLevel in Skyrim, in Fallout, you can't specify the key if you choose 255 as the lock level.

See Also[edit | edit source]