FindRandomActorFromRef - Game
Member of: Game Script
SyntaxEdit
Actor Function FindRandomActorFromRef(ObjectReference arCenter, float afRadius) global
ParametersEdit
Return ValueEdit
A random actor found, none if no actor in the area.
ExamplesEdit
; Find a random actor near the player, limiting the search to 5 units
Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), 5.0)
NotesEdit
- arCenter is not included in the search and the return value will be a random actor.