TPS aim when out of range help

Hi,

I’m trying to set firing in TPS mode, so far it’s working well when my “LineTraceByChannel” hit something, but I’m having a hard time to handle the “out of range” case.

What I’m trying to do:

  • get tps camera forward vector
  • add my weapon range to this vector
  • rotate the “muzzle socket” to look at it
  • spawn my projectile at this location/rotation

By doing that my projectile sometimes stay at the player location (I guess it’s a rotation problem), sometimes the “start location” of the projectile is offsetting on the Y axis of the muzzle socket…

Here is the blueprint to handle the out of range case, and a video showing what’s is going wrong

Thank you !

bump

:frowning: