Announcement

Collapse
No announcement yet.

Help with line trace

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with line trace

    I'm doing a shooter and i'm using line trace by channel to spawn the projectile and the projectile when overlaps does damage.
    But i'm needing something more efficient. I'm trying to adjust the damage based on where the bullet hit.
    The problem is : the bullet is not spawning in the right place. it spawns right in front of the pawn and it'll only take damage if it moves to the where the bullet is.
    The line trace is setted the exact same way as this one : https://docs.unrealengine.com/latest...ts/Blueprints/

    i'm using a spawn actor to do the bullet spawn job. and the spawn location i use a break hit result from the line trace and set it to be the location from the line trace.
    I also tried all collision handling override from the spawn actor but they dont seem to work.
    How can i fix that?
Working...
X