GetLockLevel - ObjectReference
Revision as of 22:15, 7 July 2013 by imported>RJHelms84 (Added lock level values for convenience.)
Member of: ObjectReference Script
Description
Returns the level of the lock attached to this object. If there is no lock, it will return 0 - very easy. Lock level values are:
- 1 = Novice
- 25 = Apprentice
- 50 = Adept
- 75 = Expert
- 100 = Master
- 255 = Requires Key
Syntax
int Function GetLockLevel() native
Parameters
None.
Return Value
The level of the lock attached to this object.
Examples
; Is the lock very easy?
if (WeakChestProperty.GetLockLevel() == 0)
Debug.Trace("Lock is very easy")
endIf
See Also
- Locking and Unlocking Doors tutorial.
- IsLocked - ObjectReference
- Lock - ObjectReference
- LockDoors (Procedure)
- SetLockLevel - ObjectReference
- UnlockDoors (Procedure)
- UnlockOwnedDoorsInCell - Actor
- GetLocked console command.
- GetLockLevel console command.
- Lock console command.
- Unlock console command.