Find Nearest Actor

Find Nearest Actor

Choose your operating system:

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
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 (single-precision)

Distance from Origin to the returned Actor.

Return Value
Actor Object Reference

Nearest Actor.