FindClosestActor

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Finds the closest actor to a given distance of a location.

Syntax

[help]
(Actor:ref) FindClosestActor PosX:float PosY:float PosZ:float includeDead:int includeTeammates:int fDistance:float

Example

set RandomActorRef to FindClosestActor 19000 29000 6000

Will try to find closest actor to specified coordinates.

set RandomActorRef to FindClosestActor  19000 29000 6000 0 1 3000

Will try to find closest actor within 3000 radius of specified coordinates(including teammates)

Notes

  • This funtion will look for actors in the currently loaded interior cell or set of exterior cells adjacent to (and including) the player's current cell (with processing-Levels of 0), excluding the player.

See Also