Difference between revisions of "GetLockLevel"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
imported>Catwheezle (Added "see also" section items.) |
||
Line 19: | Line 19: | ||
==See Also== | ==See Also== | ||
[[GetLocked]] | *[[GetLocked]] console command. | ||
[[Lock]] | *[[Lock]] console command. | ||
[[Unlock]] | *[[Unlock]] console command. | ||
==Papyrus Version== | ==Papyrus Version== | ||
[[GetLockLevel - ObjectReference]] | *[[Locking and Unlocking Doors]] tutorial. | ||
*[[GetLockLevel - ObjectReference]] | |||
[[Category:Console Commands]] | [[Category:Console Commands]] | ||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 00:12, 15 February 2012
GetLockLevel returns an integer representing the lock level of a locked door, container, or hinge trap. Possible values are:
- 0 = Novice
- 25 = Apprentice
- 50 = Adept
- 75 = Expert
- 100 = Master
- 255 = Requires Key
All doors and containers have a lock level, set on their reference.
- By default, an object's lock level is 0 (Novice).
- The lock level of an object persists even if the object is currently unlocked.
- For example, in cities, most shops are locked at night, and unlocked during the day. GetLockLevel will return the same value (the nighttime lock level) regardless of the time of day.
- This command will not tell you whether a door is currently locked or not. For that, use GetLocked.
Syntax[edit | edit source]
DoorRef.GetLockLevel