FindAllReferencesOfType - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

ObjectReference[] Function FindAllReferencesOfType(Form arObjectOrList, float afRadius) native

ParametersEdit

  • arObjectOrList: Base Object to look for or form list of objects to look for
  • afRadius: Maximum distance from ref to look for a reference

Return ValueEdit

An array of references to any of the valid types within the radius, empty if none was found.

ExamplesEdit

; 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)

See AlsoEdit