How To Set Up Switching Between Weapons - Unreal Engine 5 Tutorial

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • Hry

Komentáře • 59

  • @PitchforkAcademy
    @PitchforkAcademy  Před 8 měsíci +4

    Guys, I reuploaded this one, changing the last section to clean up the graph a bit and also add the ability to scroll down through the weapons. 🫡

  • @AmanSinghThakur-uy1mw
    @AmanSinghThakur-uy1mw Před 8 měsíci +1

    Bro seriously guys like you help the newbies like me learn a lot about unreal engine 5. Thankyou bruh

  • @joxxix7035
    @joxxix7035 Před 8 měsíci +3

    MR MizzoFizzo I want to thank you for everything u did, u don't know how much u helping us, I wish I could even do the same for you. if you thinking about creating a patron account I will be your first subscriber ✌🏻✌🏻❤❤❤❤

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci

      I just set up Supers so if you'd like you can always make a small donation to me via Super Thanks within youtube. 😊

  • @CarpeDiem94
    @CarpeDiem94 Před 8 měsíci +1

    Keep em coming! excited for more parts of the true fps series! And congratulations of 2k subscribers brother!

  • @MagnumN117
    @MagnumN117 Před 4 měsíci +1

    Great video, Mizzo! These vids of yours are fantastic follow-along lessons for newbies like myself!

  • @darkestdaysvideogame
    @darkestdaysvideogame Před 4 měsíci

    Hey I uploaded a tutorial for this about 7 months ago and I'm happy to see that we came to pretty similar conclusion with few different details here and there.

  • @DirtbagOps
    @DirtbagOps Před měsícem

    For the thing when it moves your animations. You should be able to fix that with grid snapping

  • @user-kl4jq7zm9d
    @user-kl4jq7zm9d Před 8 měsíci +1

    muchas gracias amigo, se valora esta serie

  • @allenh205
    @allenh205 Před 3 měsíci +1

    I have ALMOST everything here working as intended. Only problem I have now is if I shoot one of the weapons, switch to another, and then back, the first weapon is now empty and I have to reload. Any advice on fixing this, guys?

  • @revo_dev_dz
    @revo_dev_dz Před 8 měsíci +4

    You Reposted it ❤❤❤

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci +1

      Yup! I changed the last section to clean up the graph and also add scrolling down through the weapons. 😁

    • @revo_dev_dz
      @revo_dev_dz Před 8 měsíci +1

      @@PitchforkAcademy yes because I said why he didn't showed the mouse wheel down ✌↘️💜

    • @Canale_Chiuso
      @Canale_Chiuso Před 8 měsíci

      Hey@@PitchforkAcademy! By any chance will this series also include the weapon reloading animation? I honestly can't figure out how to get my character to remove and insert the weapon magazine :c

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci

      @@Canale_Chiuso Yep, I'm going to add ammunition variables to the system as well as show how to create reloading animations. If you're eager to play around and figure some of it out for yourself, take a look at the reload animations included in the weapons packs. 😉

    • @Canale_Chiuso
      @Canale_Chiuso Před 8 měsíci +1

      @@PitchforkAcademy animating stuff just gives me headaches, i've been trying for days after pulling off a String/Int Map based ammo system

  • @cryptokimo7558
    @cryptokimo7558 Před 8 měsíci

    You just got another sub :) Great vid!

  • @billy-bg9rx
    @billy-bg9rx Před 5 měsíci

    Great video! Just finished this one and about to head to the next. Have a problem though where my assault rifle is smaller when I switch back to it. Have no idea how i messed that up haha.

  • @lefunkise1210
    @lefunkise1210 Před 8 měsíci +1

    Great video. But (maybe i did something wrong) there is a problem about the pickul logic. Because the system about the pickup was to replace the current weapon by the one on the ground. And now when you pickup a weapon. The weapon in the hands is dropping and you have the weapon in your ""inventory"". I think that the problem can bi fixed by setting up and inventory like an array with "slots"

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci +1

      As I said in the video, this is a basic system like in Half-Life...

    • @lefunkise1210
      @lefunkise1210 Před 8 měsíci

      Sure, this is still a great system to improve. Thanks for your job@@PitchforkAcademy

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci +1

      @lefunkise1210 I'm adding a lot more to it. Eventually I'll combine it all into one video. For now I'm making more content for beginners/novices.

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci +1

      @lefunkise1210 For now there's nothing stopping you from adding to it yourself. 😉

  • @foxxdgd443
    @foxxdgd443 Před měsícem

    3:00 what if i do not have the "current wepon" variable?

  • @demonics7549
    @demonics7549 Před 8 měsíci +1

    awesome tutorial, would you consider making weapons able to be dropped?

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci +2

      The weapon system already has that built into it. Just make an input and off of that spawn the pickup class, destroy the held weapon, and set the HasWeapon? boolean to false (before destroying it maybe). As a bonus, why not make the scroll up logic into a custom event and trigger that on the end of your drop weapon logic, so it automatically switches to your next available weapon!

    • @demonics7549
      @demonics7549 Před 8 měsíci +2

      @@PitchforkAcademy thanks man I will for sure try that 🙂👍

  • @doomlord5236
    @doomlord5236 Před 4 měsíci

    This is a great tutorial but does this work on multiplayer too ?

    • @PitchforkAcademy
      @PitchforkAcademy  Před 4 měsíci +1

      Nope. Try this one:
      czcams.com/video/s6cItbr8zL0/video.html

  • @user-rp9bl5el7j
    @user-rp9bl5el7j Před 7 měsíci

    Can you make a weapon attachment tutorial?

    • @PitchforkAcademy
      @PitchforkAcademy  Před 7 měsíci

      Maybe one day. Attaching sights requires procedural aiming etc. There's other great resources out there on the subject. 🤙

  • @andrew_the_egan
    @andrew_the_egan Před 7 měsíci

    Awesome tutorial, This weapon system is working amazingly for my top down shooter im making, I did have a question though, What happens if you only want to be able to equip 2 or 3 guns at a time, and would want to switch with a weapon pickup on the ground instead of adding a weapon to your characters "Inventory"

    • @PitchforkAcademy
      @PitchforkAcademy  Před 7 měsíci +1

      I'm glad you're finding it helpful! I might make a video about that in the next few weeks. Unfortunately I'm a little under the weather at the moment...

    • @andrew_the_egan
      @andrew_the_egan Před 7 měsíci

      @MizzoFrizzo aww man, I hope you feel better! 🙏 health is the most important,and thank you for considering it!

  • @Ihasfinger911
    @Ihasfinger911 Před 5 měsíci

    I have a system where the weapons are child components and setup in construction script but it's kinda breaking my brain how to include switching the e_animstate (+ functions that move the fps cam around slightly according to the gun). Would it be best at multigate in your opinion?

  • @ever.ez7
    @ever.ez7 Před 4 měsíci

    If i pick up the rifle then try to pick up the pistol in the rifle slot it drops the rifle, but when I go in to the rifle slot I still have a rifle so it made a duplicate. Is this a bug or did I miss something? I know which slot they belong in, but people playing the game wont. Thanks if you get back to me!

    • @DylanPlayzz871
      @DylanPlayzz871 Před měsícem

      im having the same issue also. like its spawning the weapon i just had in my hands and its dropping on the ground. but yet i still have it in my inv and i can switch to it. have you found a fix for it?

  • @VishalKumar-ep2wv
    @VishalKumar-ep2wv Před 7 měsíci

    How can we add different types of Assault rifles like(ak 47,AR15, etc and pistols to)

    • @PitchforkAcademy
      @PitchforkAcademy  Před 7 měsíci

      Add an enumeration to your weapon parent

    • @VishalKumar-ep2wv
      @VishalKumar-ep2wv Před 7 měsíci

      Not gating your point plizz explain in detail

    • @VishalKumar-ep2wv
      @VishalKumar-ep2wv Před 7 měsíci

      I created a duplicate of Assault rifles as AK47 but when I swap it it become Assault rifles why

    • @PitchforkAcademy
      @PitchforkAcademy  Před 7 měsíci

      @VishalKumar-ep2wv Keep working hard and you'll learn how to do it in good time. Maybe if you're lucky I'll cover it in one of my tutorials some day, maybe...

  • @festy768
    @festy768 Před 5 měsíci

    in what video you were doing rifle aiming

    • @PitchforkAcademy
      @PitchforkAcademy  Před 5 měsíci

      Part 8, my animation workshop:
      czcams.com/video/uON61DO_kJs/video.htmlfeature=shared

    • @festy768
      @festy768 Před 5 měsíci

      okey thank you but i see there that you only do animation. In witch video were setting up that aiming to work with rifle animation? @@PitchforkAcademy

    • @PitchforkAcademy
      @PitchforkAcademy  Před 5 měsíci

      @@festy768 Oh, aiming is just a boolean that's passed over to the animBP. You can see what it looks like in this video at about 1min25secs in:
      czcams.com/video/58oSoDVTD3M/video.htmlfeature=shared

    • @festy768
      @festy768 Před 5 měsíci

      oh but now when I press the right button I aim, how can i do it so i need to hold it to aim?
      thanks for your time

    • @PitchforkAcademy
      @PitchforkAcademy  Před 5 měsíci +1

      @@festy768 on release set it as false. Plenty of videos on it out there, mate...

  • @Th3Lunat1c
    @Th3Lunat1c Před 8 měsíci

    uuh how to you make current weapon int i was not following the whole collection of videos so a bit stuck

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci

      Part 6.

    • @Th3Lunat1c
      @Th3Lunat1c Před 8 měsíci

      thanks

    • @PitchforkAcademy
      @PitchforkAcademy  Před 8 měsíci

      @@Th3Lunat1c I'm going to upload some stuff about the weapon spawning logic today so stay tuned

    • @deamigo9286
      @deamigo9286 Před 8 dny

      @@PitchforkAcademy but this is video three in the UE5 Weapon System Playlist^^'

    • @PitchforkAcademy
      @PitchforkAcademy  Před 7 dny

      @@deamigo9286 Part 6 of the True First-Person Shooter Series... That playlist is a bit of a mish-mash. I'd recommend following my Ultimate Weapon System playlist instead. 🙂

  • @gamekheloindia4503
    @gamekheloindia4503 Před 5 měsíci

    Hi bro can you give me animation pack for free please please please please please please please

    • @PitchforkAcademy
      @PitchforkAcademy  Před 5 měsíci +4

      There's a really great free animation pack called "you can make your own animations in sequencer". I highly recommend it! 😉