Description
Wiki Description
Gets the Nth linked ref from this object.
Documentation Comment
Returns the Nth linked ref from this reference (0 = self, 1 = GetLinkedRef, 2 = GetLinkedRef.GetLinkedRef, etc)
Caveats
Parameters
intaiLinkedRef
CK Wiki Description
The linked ref to get. 0 will return this object, 1 will return the same as ObjectReference.GetLinkedRef(...) with no keyword parameter, 2 will return essentially "GetLinkedRef().GetLinkedRef()", and so on.
Examples
; Assume Item3 is the linked ref of Item2, which is the linked ref of Item1
ObjectReference linkedRef1 = Item1.GetNthLinkedRef(0) ; Returns Item1
ObjectReference linkedRef2 = Item1.GetNthLinkedRef(1) ; Returns Item2
ObjectReference linkedRef3 = Item1.GetNthLinkedRef(2) ; Returns Item3Auto-Generated Example
int myInt__aiLinkedRef
ObjectReference returnedValue = myObjectReference__toCallFunctionOn.GetNthLinkedRef(myInt__aiLinkedRef)