How To Set Up Third Person Line Trace With Random Bullet Spread - Unreal Engine 5 Tutorial

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 24

  • @micromunki9076
    @micromunki9076 4 місяці тому

    An amazing tutorial and very easy to follow :)

  • @kirkg9644
    @kirkg9644 7 місяців тому +1

    This is awesome, and super helpful!
    How would I add a node that would multiply the shots, making it a shotgun?
    I figured adding multipliers would just increase velocity.

    • @PitchforkAcademy
      @PitchforkAcademy  7 місяців тому

      You can use a For Loop node to make a shotgun... 😉

  • @HungryConnor
    @HungryConnor 10 місяців тому +2

    I had / have an issue of being able to shoot something if they come between the character and the camera e.g shooting backwards. I've temporarily solved this by creating a collision box without collision in the same position as the camera but forwards enough to be approximately in line with the guns muzzle and using this box as the start for the initial line trace

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

      Oh yeah I see what you mean. Make the start point of the targeting trace = camera forward vector X 300cm or so, then trial and error until you find a value that makes the start point just in front of the weapon's muzzle... Make sense??

  • @humbertomilanez7621
    @humbertomilanez7621 5 місяців тому

    Thank you.

  • @MagnumPierce
    @MagnumPierce 5 місяців тому

    Awesome vid, it was very helpful, but which tutorial of yours shows us how to create the aiming action?

    • @PitchforkAcademy
      @PitchforkAcademy  5 місяців тому

      My third-person shooter tutorial shows this and much more:
      ua-cam.com/video/-IM5IE_XiLI/v-deo.html 🙂

    • @MagnumPierce
      @MagnumPierce 5 місяців тому +1

      @@PitchforkAcademy Thank you kind sir, you earned a sub!

  • @TheDeathbyPurple
    @TheDeathbyPurple 4 місяці тому

    thank you

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

    hi thanks for the tutorial , i have one problem witch the collision of the mesh , the trace line not revel the collision non working also if have one problem witch the collision of the mesh , the trace line not revel the collision non working also if have switch off in ignore the collision of the capsule

  • @sleepingsoundsstudio4670
    @sleepingsoundsstudio4670 8 місяців тому

    Have you ever considered about making an enemy AI that shoots the player? I didn’t find a good tutorial about that on yt.

    • @PitchforkAcademy
      @PitchforkAcademy  8 місяців тому

      They are out there, but yes I can try to do that at some point. 🙂

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

    Why do we need 2 linetraces? I think we can use just the last one right?

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

      Not to achieve what I show you in the video. 🙂

    • @oliverdudastube
      @oliverdudastube 4 місяці тому

      You wouldn't hit the center of the viewport. Imagine a crosshair in the middle, that's where the camera line trace is aiming. It's to get the hit location vector for your second line trace, so the bullet from your weapon hits some actor directly behind the crosshair. Hope it's clear 😜

  • @earlyaccesscontrol5966
    @earlyaccesscontrol5966 8 місяців тому

    How do you do this with a static mesh?

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

    nice but please show how to make it network replicated

    • @PitchforkAcademy
      @PitchforkAcademy  2 місяці тому +1

      @@porterneon I already have a huge tutorial about that:
      ua-cam.com/video/FR81TqmZd-4/v-deo.html

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

      @@PitchforkAcademy Good one. Thank you.