Mod:Creation Kit/FindClosestReferenceOfTypeFromRef - Game

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Member of: Mod:Creation Kit/Game Script

Finds the closest reference of the given type from the location of the target reference and within the given radius.

Parameters

 * arBaseObject: The type of base object to look for
 * arCenter: Reference to use as a center to search from
 * afRadius: Maximum distance from center to look for a reference

Return Value
The closest reference found, none if none.