FindAllReferencesOfType - ObjectReference

From Creation Kit
Jump to: navigation, search

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.

Syntax

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

Parameters

  • 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 Value

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

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)

See Also