Difference between revisions of "DisableLinkChain - ObjectReference"

imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
 
imported>Thingy Person
 
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function DisableLinkChain(Keyword apKeyword = None)
Function DisableLinkChain(Keyword apKeyword = None, bool abFadeOut = false)
ObjectReference CurrentLink = GetLinkedRef(apKeyword)
While CurrentLink
CurrentLink.Disable(abFadeOut)
CurrentLink = CurrentLink.GetLinkedRef(apKeyword)
endWhile
endFunction
</source>
</source>