Move player to the closest AI

Hey there,

There could be several approaches to this, especially if you are willing to do some C++ work. But here is one option: How to get location of closest enemy pawn? - #3 by ThompsonN13

Essentially, you could get closest actors and then use grt overlapping actors to filter for the enemy AI

  1. Find Nearest Actor | Unreal Engine Documentation
  2. Get Overlapping Actors | Unreal Engine Documentation

If you have a navmesh, you may be able to use simple move to location or simple move to actor. But I don’t think you can use the other AI nodes unless your player is possessed by an AI controller.

1 Like