FindRandomActorFromRef
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Finds a random actor near a given reference.
Syntax
(Actor:ref) FindRandomActorFromRef includeDead:int includeTeammates:int fDistance:float
Example
set RandomActorRef to PlayerRef.FindRandomActorFromRef
Will try to find random actor near player.
set RandomActorRef to ObjectRef.FindRandomActorFromRef 1 0 3000
Will try to find random actor near ObjectRef within 3000 game units (including dead).
Notes
- 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).
- The player is not included in the search, meaning the function will never return the player as a random actor.