1,482
edits
GrandBulwark (talk | contribs) No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
== Return Value == | == Return Value == | ||
| Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
< | <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 | ||
</ | </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 | ||