SetLockLevel - ObjectReference
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.
SyntaxEdit
Function SetLockLevel(int aiLockLevel) native
ParametersEdit
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 ValueEdit
None.
ExamplesEdit
; Set the lock to very easy
WeakChestProperty.SetLockLevel(25)
NotesEdit
- As with SetLockLevel in Skyrim, in Fallout, you can't specify the key if you choose 255 as the lock level.