SetLockLevel - ObjectReference: Difference between revisions
Jump to navigation
Jump to search
imported>RJHelms84 m (Added lock level values for convenience.) |
m (Standardize Formatting) |
||
| Line 3: | Line 3: | ||
'''Member of:''' [[ObjectReference Script]] | '''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. | Sets the level of the lock attached to this object. If there is no lock, it will attach one, but leave it unlocked. | ||
== Syntax == | == Syntax == | ||
| Line 20: | Line 12: | ||
== Parameters == | == Parameters == | ||
*aiLockLevel: The level to set the lock at. | *aiLockLevel: The level to set the lock at. | ||
** 1 = Novice | |||
** 25 = Apprentice | |||
** 50 = Adept | |||
** 75 = Expert | |||
** 100 = Master | |||
** 255 = Requires Key | |||
== Return Value == | == Return Value == | ||
Revision as of 19:21, 12 May 2025
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
Function SetLockLevel(int aiLockLevel) nativeParameters
- aiLockLevel: The level to set the lock at.
- 1 = Novice
- 25 = Apprentice
- 50 = Adept
- 75 = Expert
- 100 = Master
- 255 = Requires Key
Return Value
None.
Examples
; Set the lock to very easy
WeakChestProperty.SetLockLevel(0)
; Set the lock to needs key
WeakChestProperty.SetLockLevel(255)See Also
- Locking and Unlocking Doors tutorial.
- GetLockLevel - ObjectReference
- IsLocked - ObjectReference
- Lock - ObjectReference
- LockDoors (Procedure)
- UnlockDoors (Procedure)
- UnlockOwnedDoorsInCell - Actor
- GetLocked console command.
- GetLockLevel console command.
- Lock console command.
- Unlock console command.