Hi! I’m trying to implement a freeflow combat system to my game, where my character moves towards the furthest enemy in the room. My character would store the selected enemy within a variable and move to his location with a ‘Component Move To’ but I’m not sure how to detect the enemy.
Use a ‘get all actors of class’ the get an array of the characters, then measure the distance to each one using the vector ‘distance’ node
1 Like
Personally I’d use a Multi-Sphere trace for Objects targeting just your enemy class. Set a max radius large enough to cover the “far distance” you want. Center the trace on your pawn.
Loop the results.
1 Like