FindRandomActorFromRef - Game
Revision as of 18:31, 29 June 2013 by imported>Thingy Person (→Syntax)
Member of: Game Script
Syntax
Actor Function FindRandomActorFromRef(ObjectReference arCenter, float afRadius) global
return FindRandomActor(arCenter.X, arCenter.Y, arCenter.Z, afRadius)
endFunction
Parameters
Return Value
A random actor found, none if no actor in the area.
Examples
; Find a random actor near the player, limiting the search to 5 units
Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), 5.0)