Difference between revisions of "SetLockLevel - ObjectReference"
Jump to navigation
Jump to search
imported>Plplecuyer |
imported>Goggle m (→Examples: Still can't choose a key for 255 lock level.) |
||
| Line 31: | Line 31: | ||
WeakChestProperty.SetLockLevel(25) | WeakChestProperty.SetLockLevel(25) | ||
</source> | </source> | ||
== Notes == | |||
* As with SetLockLevel in Skyrim, in Fallout, you can't specify the key if you choose 255 as the lock level. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||
*[[GetLockLevel - ObjectReference]] | *[[GetLockLevel - ObjectReference]] | ||
Latest revision as of 16:05, 2 September 2016
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) nativeParameters[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.