DisableLinkChain - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

This function disables all the linked refs, linked in a chain, from this reference.

Syntax[edit | edit source]

Function DisableLinkChain(Keyword apKeyword = None, bool abFadeOut = false)
	ObjectReference CurrentLink = GetLinkedRef(apKeyword)
	While CurrentLink
		CurrentLink = CurrentLink.GetLinkedRef(apKeyword)

Parameters[edit | edit source]

  • apKeyword: Keyword to check ref link against (see GetLinkedRef.)
    • Default: None

Return Value[edit | edit source]


Examples[edit | edit source]

; Disable every ref linked to startRef in a chain

; disable every ref linked to startRef using the special keyword

Notes[edit | edit source]

Do not use this on a link chain that is linked in a loop or it will cause an endless loop.

See Also[edit | edit source]