Background for Fallout 4
Member of the ObjectReference script
ObjectReference[]functionFindAllReferencesOfType(FormakObjectOrList, floatafRadius)Native

Description

Wiki Description

Finds all ObjectReference of any of the objects in the list in the loaded area within the given radius of the calling ref.

Documentation Comment

Finds all references to objects in the given list in the loaded area within the given radius of the calling
ref and returns an array of them


Caveats


Parameters

FormakObjectOrList

CK Wiki Description

Base Object to look for or form list of objects to look for

floatafRadius

CK Wiki Description

Maximum distance from ref to look for a ObjectReference


Examples

; Find all refs to gems in formlist GemList within 200 units of the activator
ObjectReference[] gemarray = ActiRef.FindAllReferencesOfType(GemList, 200.0)

; Find all refs to Gem01 within 200 units of the activator
ObjectReference[] gem01array = ActiRef.FindAllReferencesOfType(Gem01, 200.0)

Auto-Generated Example

Form myForm__akObjectOrList
float myFloat__afRadius

ObjectReference[] returnedValue = myObjectReference__toCallFunctionOn.FindAllReferencesOfType(myForm__akObjectOrList, myFloat__afRadius)

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.