FindRandomActor

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Finds a random actor within a given distance of a location.

Syntax

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

Example

set RandomActorRef to FindRandomActor  19000 29000 6000

Will try to find random actor near specified coordinates.

set RandomActorRef to FindRandomActor  19000 29000 6000 0 1 3000

Will try to find random 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