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

Description

Wiki Description

Gets an array of instantiated Actors (across all process levels) who are linked to this reference, using a LinkedRef with the specified keyword. Skips over dead, disabled, or deleted actors. Can optionally specify a keyword for which they must NOT have a LinkedRef .

Documentation Comment

Get an array of all instantiated Actors (across all process levels) that link to this reference.
The actor must link to this ref with a keyworded linkedref using the keyword (apLinkKeyword).
Can optionally specify another keyword (apExcludeKeyword); actors 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 actor 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 actor 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 (across all process levels) non-"lookout" Actors linked to the "turf" reference "Warehouse101Ref" via the "Turf" TurfKeyword
Actor[] warehouseActors = Warehouse101Ref.GetActorsLinkedToMe( TurfKeyword, LookoutKeyword )

Auto-Generated Example

Keyword myKeyword__apLinkKeyword
Keyword myKeyword__apExcludeKeyword

Actor[] returnedValue = myObjectReference__toCallFunctionOn.GetActorsLinkedToMe(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.