Minimap vector calculations


Help me out with the math here, I think I’m doing it wrong. I’m trying to plot the allies and the enemies on a minimap, relative to the actor’s location. As far as I can think, this should be easy with the vector geometry as shown above - get the location vectors of the player and the NPC, get their projections on the ground, subtract the two, scale it down by some factor, and that should give me the position. But somehow, the blips are not showing up in the proper places.

Here’s my blueprint segment. I’ve had to blue some parts out due to NDA, but the relevant calculation should happen in this part.