1,482
edits
m (Standardize Formatting) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
int Function GetLockLevel() native | int Function GetLockLevel() native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 25: | Line 25: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Is the lock very easy? | ; Is the lock very easy? | ||
if (WeakChestProperty.GetLockLevel() == 0) | if (WeakChestProperty.GetLockLevel() == 0) | ||
Debug.Trace("Lock is very easy") | Debug.Trace("Lock is very easy") | ||
endIf | endIf | ||
</ | </syntaxhighlight> | ||
| Line 36: | Line 36: | ||
making scripting locked objects significantly easier. | making scripting locked objects significantly easier. | ||
< | <syntaxhighlight lang="papyrus"> | ||
;sanitizes lock level | ;sanitizes lock level | ||
;0 = unlocked, 1 = novice, 2 = apprentice, 3 = adept, 4 = expert, 5 = master, 6 = key | ;0 = unlocked, 1 = novice, 2 = apprentice, 3 = adept, 4 = expert, 5 = master, 6 = key | ||
| Line 60: | Line 60: | ||
endif | endif | ||
endfunction | endfunction | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||