Mod:Creation Kit/GetLinkedRefChain - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

This function returns an array of objectreferences representing the "linked ref chain" hanging of the reference it is called on. For example. If myObject has linkedref to ObjectA which has a linkedref to ObjectB which has a linkedref to ObjectC, and you call myObject.GetLinkedRefChain it will return an array holding ObjectA, ObjectB, and ObjectC.

Parameters

 * apKeyword: Keyword to check ref link against (see GetLinkedRef.)
 * Default: None
 * iMaxExpectedLinkedRefs: Maximum number of expected links. The function stops checking after it finds this many or finishes finding all of them.
 * Default: 100

Return Value
An array of ObjectReferences representing the reference that this object is linkedRef'd to and whatever that object is linkedRef'd to, and so on. Will stop if it finds a loop.