I’m tring to make a tower defense game where you can walk around and attack enemies as well as use towers to defend. I’m currently having trouble with the tracking of the tower. I’m trying to use pawnsensing to rotate an arrow on the z axis that will point in the direction of enemies. For debugging purposes I made the tower detect my main player called "AlmondZD’. This is a PaperZD character.
I’m using a tag system to detect my player with Pawn Sensing and then asking the tower bp to rotate its arrow in the direction of my player, however, it will not rotate.
Here is the BP of my tower :
Here is the viewport of my tower along with the Pawn Sensing settings:
Here is what happens when play testing:
What am I doing wrong? My guess might be that it has to do with my characters being paperZD characters they don’t get detected but I’m not sure. I tested AI perception on the tower as well as that is what I use for an enemy AI I’m working on and it detects my main player well, but for some reason when I put AI perception on the tower and use the “On Target Perception” and then make the arrow try to rotate towards the target, I get the same result as the Pawn Sensing AI.