FindAllReferencesOfType - ObjectReference
Jump to navigation
Jump to 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[edit | edit source]
ObjectReference[] Function FindAllReferencesOfType(Form arObjectOrList, float afRadius) native
Parameters[edit | edit source]
- 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[edit | edit source]
An array of references to any of the valid types within the radius, empty if none was found.
Examples[edit | edit source]
; 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[edit | edit source]
- ObjectReference Script
- Game Script
- FindAllReferencesWithKeyword - ObjectReference
- FindClosestReferenceOfAnyTypeInList - Game
- FindClosestReferenceOfAnyTypeInListFromRef - Game
- FindClosestReferenceOfType - Game
- FindClosestReferenceOfTypeFromRef - Game
- FindRandomReferenceOfAnyTypeInListFromRef - Game
- FindRandomReferenceOfType - Game
- FindRandomReferenceOfTypeFromRef - Game