GetLockLevel - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Standardize Formatting)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
int Function GetLockLevel() native
int Function GetLockLevel() native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 25: Line 25:


== Examples ==
== Examples ==
<source lang="papyrus">
<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
</source>
</syntaxhighlight>




Line 36: Line 36:
making scripting locked objects significantly easier.
making scripting locked objects significantly easier.


<source lang="papyrus">
<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
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu