IsEnabled - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>Thingy Person
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function IsEnabled()
bool Function IsEnabled()
return !IsDisabled()
return !IsDisabled()
EndFunction
EndFunction
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 19: Line 19:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Is the shield enabled?
; Is the shield enabled?
if (ShieldProperty.IsEnabled())
if (ShieldProperty.IsEnabled())
   Debug.Trace("The shield is up!")
   Debug.Trace("The shield is up!")
endIf
endIf
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu