Description
Wiki Description
Finds a random Actor within a given radius of a location.
Documentation Comment
Finds a random actor within a given radius of a location
Caveats
CK Wiki - Notes
- Can use the position, even without offsets, of an actor as the center of the search, the return value will be a random actor.
Parameters
floatafX
CK Wiki Description
center of the search, X component
floatafY
CK Wiki Description
center of the search, Y component
floatafZ
CK Wiki Description
center of the search, Z component
Examples
; Find a random actor to 0,0,0, limiting the search to 5 units
Actor randomActor = Game.FindRandomActor(0.0, 0.0, 0.0, 5.0)Auto-Generated Example
float myFloat__afX
float myFloat__afY
float myFloat__afZ
float myFloat__afRadius
Actor returnedValue = Game.FindRandomActor(myFloat__afX, myFloat__afY, myFloat__afZ, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestActor(...)
- Game.FindClosestActorFromRef(...)
- Game.FindRandomActorFromRef(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
