Description
Wiki Description
Finds the closest Actor within a given radius of a ObjectReference.
Documentation Comment
Finds the closest actor within a given radius of a reference
Caveats
CK Wiki - Notes
- As with the Skyrim counterpart, if an actor is used for arCenter, the return value will be that of arCenter. The example above was not tested by whoever put that there.
Parameters
Examples
; Find the closest actor to the player, limiting the search to 5 units
Actor closest = Game.FindClosestActorFromRef(Game.GetPlayer(), 5.0)Auto-Generated Example
ObjectReference myObjectReference__arCenter
float myFloat__afRadius
Actor returnedValue = Game.FindClosestActorFromRef(myObjectReference__arCenter, myFloat__afRadius)Related Pages
- Game
- Game.FindClosestActor(...)
- Game.FindRandomActor(...)
- Game.FindRandomActorFromRef(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
