TryToDisable - ReferenceAlias: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
No edit summary
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function TryToDisable()
bool Function TryToDisable()
ObjectReference Ref = GetReference()
ObjectReference Ref = GetReference()
Line 16: Line 16:
Return False
Return False
EndFunction
EndFunction
</source>
</syntaxhighlight>


== Return Value ==
== Return Value ==
Line 22: Line 22:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Disable the alias
; Disable the alias
if BarrierAlias.TryToDisable()
if BarrierAlias.TryToDisable()
Line 29: Line 29:
   Debug.Trace("No barrier to disable")
   Debug.Trace("No barrier to disable")
endIf
endIf
</source>
</syntaxhighlight>
==Notes:==
==Notes:==
*Disable yields until done so TRUE is a reflection of both HAD reference, and Reference is now disabled
*Disable yields until done so TRUE is a reflection of both HAD reference, and Reference is now disabled

Navigation menu