Mod:Creation Kit/FindClosestReferenceOfAnyTypeInListFromRef - Game

Member of: Game Script

Finds the closest reference of any of the types in the list around the target reference and within the given radius.

Parameters

 * arBaseObjectsA: The list of valid base objects to look for
 * arCenter: The reference to use as the center point of the search
 * afRadius: Maximum distance from center to look for a reference

Return Value
The closest reference of any of the types within the radius around the center reference, none if none was found.