Difference between revisions of "GetLinkedRefChildren - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>DarkruneDK
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script This function returns an array of objectreferences representing the "linked ref children"...")
 
imported>Scrivener07
m (Just clarifying what Linked Ref Children is actually referring to.)
 
Line 33: Line 33:


</source>
</source>
 
== Notes ==
* For the uninitiated, LinkedRef "Children" means the references that appear in the '''Linked From''' area of the Object's Reference window.
== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[GetLinkedRef - ObjectReference]]
*[[GetLinkedRef - ObjectReference]]

Latest revision as of 06:11, 7 February 2021

Member of: ObjectReference Script

This function returns an array of objectreferences representing the "linked ref children" of the reference it is called on, using only those linked with the specified keyword.


Syntax[edit | edit source]

ObjectReference[] Function GetLinkedRefChildren( keyword apKeyword ) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

An array of ObjectReferences representing the references are directly linked as children to this object using the specified keyword.

Examples[edit | edit source]

; Get all of the terminal link children of this object reference.
ObjectReference[] LinkedRefs = GetLinkedRefChildren(TerminalLinkKeyword)


; Enable the "terminal link" children refs of this object reference.
ObjectReference[] LinkedRefs = GetLinkedRefChildren(TerminalLinkKeyword)
int i = 0
while (i < LinkedRefs.length)
	LinkedRefs[i].enable()
	i += 1
endwhile

Notes[edit | edit source]

  • For the uninitiated, LinkedRef "Children" means the references that appear in the Linked From area of the Object's Reference window.

See Also[edit | edit source]