Background for Fallout 4
Member of the ObjectReference script
intfunctionCountLinkedRefChain(KeywordapKeyword=NONE, intmaxExpectedLinkedRefs=100)Native

[DEV SERVER] Loading description...


Caveats


Parameters

KeywordapKeyword=NONE

CK Wiki Description

Keyword to check ref link against (see ObjectReference.GetLinkedRef(...).)

  • Default:None

intmaxExpectedLinkedRefs=100

CK Wiki Description

Maximum number of expected links. The function stops checking after it finds this many or finishes finding all of them.

  • Default:100

Examples

; Count the number of refs in a linked ref chain to us
int numLinkedRefs = countLinkedRefChain()
; Count the number of refs in a linked ref chain, following the specified keyword for each one
int numLinkedRefs = countLinkedRefChain(LightKeyword)

Auto-Generated Example

keyword myKeyword__apKeyword
int myInt__maxExpectedLinkedRefs

int returnedValue = myObjectReference__toCallFunctionOn.CountLinkedRefChain(myKeyword__apKeyword, myInt__maxExpectedLinkedRefs)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.