Background for Starfield
Member of the ObjectReference script
ObjectReference[]functionGetRefsLinkedToMe(KeywordapLinkKeyword=NONE, KeywordapExcludeKeyword=NONE)Native

Description

Wiki Description

Gets an array of all instantiated ObjectReferences that are linked to this reference, using a LinkedRef with the specified keyword. Can optionally specify a keyword for which they must NOT have a LinkedRef.

Documentation Comment

Get an array of all instantiated refs that link to this reference.
They must link to this ref with a keyworded linkedref using the keyword (apLinkKeyword).
Can optionally specify another keyword (apExcludeKeyword); refs with a linkedref using that keyword will be skipped when building the array.


Parameters

  1. KeywordapLinkKeyword=NONE

    CK Wiki Description

    In order to be added to this array, an ObjectReference must link to this ref with a LinkedRef using this Keyword. Can be None.

    • Default:None
  2. KeywordapExcludeKeyword=NONE

    CK Wiki Description

    In order to be added to this array, an ObjectReference must NOT have a keyworded LinkedRef that uses this Keyword. (If None, don't exclude on the basis of any keyword.)

    • Default:None

Examples

;Get a list of all instantiated non-"lookout" ObjectReferences linked to the "turf" reference "Warehouse101Ref" via the "Turf" TurfKeyword
ObjectReference[] warehouseRefs = Warehouse101Ref.GetRefsLinkedToMe( TurfKeyword, LookoutKeyword )

Auto-Generated Example

Keyword myKeyword__apLinkKeyword
Keyword myKeyword__apExcludeKeyword

ObjectReference[] returnedValue = myObjectReference__toCallFunctionOn.GetRefsLinkedToMe(myKeyword__apLinkKeyword, myKeyword__apExcludeKeyword)

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.