Description
Wiki Description
Finds a random Actor within a given radius of a ObjectReference.
Documentation Comment
Finds a random actor within a given radius of a reference
Parameters
ObjectReferencearCenter
CK Wiki Description
The ObjectReference to search around
floatafRadius
CK Wiki Description
Maximum distance from center to look for an Actor
Examples
; Find a random actor near the player, limiting the search to 5 units
Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), 5.0)Auto-Generated Example
ObjectReference myObjectReference__arCenter
float myFloat__afRadius
Actor returnedValue = Game.FindRandomActorFromRef(myObjectReference__arCenter, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestActor(...)
- Game.FindClosestActorFromRef(...)
- Game.FindRandomActor(...)
