How To Apply DAMAGE With LINE TRACE | Unreal Engine 5 Tutorial

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • 🔔 Subscribe! 🔔
    Subscribe ► / @buvesagamedevelopment
    ☝️ In this UE5 tutorial you will learn how to apply damage with line trace by channel. We will shoot shit line trace inside of the unreal engine 5 gun blueprint and apply event anydamage to take out the enemy.
    #unrealengine #ue5 #gamedev

КОМЕНТАРІ • 26

  • @ilikemaccaroni28
    @ilikemaccaroni28 2 роки тому +4

    THANK YOU
    I spent an hour trying to figure out way to do this before I found this tutorial

  • @edwardnammur5962
    @edwardnammur5962 2 роки тому +2

    First and damn this looks so good. As soon as I’m back from Vacation I’m watching this in full

  • @nidalnijmgames
    @nidalnijmgames Місяць тому

    Amazing tutorial!

  • @TheJakeblake
    @TheJakeblake 2 роки тому +1

    Thank you vey much, you´r videos are quick and to the point, I like that Thanks

  • @wolfiedgr8t
    @wolfiedgr8t 2 роки тому +1

    As simple as that! Thanks 👍

  • @cbomcnasty
    @cbomcnasty 3 місяці тому

    simple and amazing, love you

  • @Rotspitze
    @Rotspitze Рік тому +4

    mine is killing every thing in 1 shot even tho its damage is 3 i made a dummy with the same blue prints as yours but i set the health to 300 so if you know how to fix plz tell me

    • @viniciusnoyoutube
      @viniciusnoyoutube Рік тому

      Same problem.

    • @viniciusnoyoutube
      @viniciusnoyoutube Рік тому +2

      I found the problem.
      The subtract need to the first the health and under the damage. Like in the 3:27
      If you do the other way it get negative and that's why it gets destroy on the first shoot.

  • @vladizzzlove3825
    @vladizzzlove3825 10 місяців тому

    you're the best!

  • @Sentinel3dsm87
    @Sentinel3dsm87 6 місяців тому

    how can you apply that damage to a destructable so that pieces break off?

  • @Megadeath223
    @Megadeath223 2 роки тому +1

    Thank you

  • @top10amazon15
    @top10amazon15 2 роки тому +1

    can you please make tutorials in c++

  • @landosouzza
    @landosouzza 2 роки тому +2

    Obrigado

  • @avfilms7714
    @avfilms7714 2 роки тому

    It Works in ue4 to

  • @jtukko
    @jtukko 2 місяці тому

    Just in case someone runs into same issue as me:
    This did nothing to my enemy set up. Until i placed a sphere on it. Then i set the sphere as not visible.
    NOW the enemy gets destroyed as supposed. Wierd.

    • @jtukko
      @jtukko 2 місяці тому

      I had colliders and all set up but it just wanted that damn sphere.

  • @thesyndicatea.t.k7528
    @thesyndicatea.t.k7528 Рік тому

    is there a way to make this work with 5.2 where there is no "onFireProjectile"?

  • @davidross1332
    @davidross1332 2 роки тому

    What about if you hit an enemy and there is another enemy behind the one you hit? How do you give the second enemy hit damage as well?
    (Collateral)

    • @viniciusnoyoutube
      @viniciusnoyoutube Рік тому

      No.
      LineTraceByChannel will perform a collision trace along a given line and return the first Object that the trace hits.
      MultiLineTraceByChannel will perform a collision trace along a given line and return all hits encountered (up to and including) the first blocking hit, returning only objects that respond to the specified Trace Channel.

  • @DimitryArsenev
    @DimitryArsenev Рік тому

    My shots is shot floor walls, but ignore pawns.

    • @Tommyboi7566
      @Tommyboi7566 Рік тому

      You have to set the collision in the mesh settings

  • @ratyio_cookie775
    @ratyio_cookie775 Рік тому

    3:28 Easter eggs