Mod:Creation Kit/FindClosestReferenceOfType - 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 given location and within the given radius.

Parameters

 * arBaseObject: The type of base object to look for
 * afX: center of the search, X component
 * afY: center of the search, Y component
 * afZ: center of the search, Z component
 * afRadius: Maximum distance from center to look for a reference

Return Value
The closest reference found, none if none.