Hi, this is for a Beat Em Up style game.
From the NPC’s point of view, off the event tick we first check if Player 00 (P00) or Player 01 (P01) exist. (I am getting direct ref’s to the spawned actors in the game mode).
Now if they both exist, off of Event Begin play there is a set timer that is firing every 3 seconds. This feeds into the distance check MACRO.
The idea here in theory is once every 3 seconds check the distance to each Player and choose the lesser. Then logic can be implemented to move to THAT player.
I don’t know if my math here is off or my nodage, but it does not work, and here the “P01 Closer” print string always triggers no matter how the players move around.
Does anyone know what is wrong here? Any help is greatly appreciated, thanks.