Find Nearest Actor

Find Nearest Actor

Windows
MacOS
Linux

Returns an Actor nearest to Origin from ActorsToCheck array.

Target is Gameplay Statics

Find Nearest Actor
Origin
X0
Y 0
Z 0
Actors to Check
Distance
0.0
Return Value

Inputs

Origin
Vector

World Location from which the distance is measured.

Actors to Check
Array of Actor Object References

Array of Actors to examine and return Actor nearest to Origin.

Outputs

Distance
Float

Distance from Origin to the returned Actor.

Return Value
Actor Object Reference

Nearest Actor.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss