The idea is to have a projectile launched towards the mouse position, but not AT mouse position. It must always go a fixed distance (say for example, 1000 units), wether the mouse is close or far. The mouse is only to aim (just like a bullet would).
If you could, use Blueprints for that, if you wouldn’t mind. I appreciate since.
all you need is the UnitDirection from Start To MouseHitLocation you can multiply that by Distance X (say 1000) add it to your start location and you have the EndPoint.
how you stop the projectile is up to you, but if you’re using projectile movement you can compare ProjectileLocation to EndPoint on Tick and DestroyActor when its within range