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
Caveats
CK Wiki - Notes
- arCenter is not included in the search and the return value will be a random actor.
Parameters
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(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
