So I am doing a tower defence project at the moment and while there are a few workarounds for this problem that I am aware of, I would like to try and figure out a way to guarantee a hit on a character with a projectile spawned by a tower by using an actual projectile and not by instant damage etc. Even if I go down the route of just applying the damage independently I would still like to be able to animate in a straight line an attack coming from the tower to hit the character.
So the problem comes from the fact that a projectile takes time to get to a moving character, for example a character running perpendicular past a tower. I have the angle of the firing matching up to the characters rotation correctly from the tower, but obviously since he is running past the tower I would need to fire where he is going to be, not where he is when I hit the fire button.
So while the math itself is not too complicated to figure out; speed of the character, his current path, distance from the tower and speed of the projectile, it does seem like a fairly complex thing that I thought perhaps somebody else might have put together a blueprint macro already that I could check out?