Weapon Firing | Unreal Engine 5 First Person Shooter (FPS) Beginner Tutorial | #3

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • In this video, we'll setup the firing animation and effect for our weapon for our first person shooter game inside of Unreal Engine 5. We'll be doing this with animation notifies to time the sounds and VFX with the animation. Stay tuned!
    ► View the full first person shooter course today on our website: wwww.virtushub.com/p/fps and receive 50% off the purchase price.
    New UE5 FPS video every week.
    0:00 - Intro
    0:30 - Firing input setup
    1:57 - Weapon fire trigger
    3:22 - Animation blueprint setup
    5:07 - Animation transitions
    7:15 - Linking animations to the character
    8:02 - Controller triggers
    9:21 - Muzzle flash and sounds
    14:20 - Outro
    Don't forget to like the video and subscribe!
    ♥ Don't forget you can support the channel on Patreon for more content just like this! / virtushub
    ♥ Join the Virtus Discord: / discord
    Virtus Creative Hub // Media
    ● Facebook Page - / virtushub
    ● Twitter Page - / virtushub
    ● Website - www.virtushub.com

Komentáře • 112

  • @VirtusEdu
    @VirtusEdu  Před rokem +3

    Hey everyone, in this video we show you how to get a weapon firing in Unreal Engine 5, enjoy!

  • @4Lop532
    @4Lop532 Před rokem +3

    Hello virtus learning hub, how can change the recoil of the gun to something more realistic?

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

    a little confused got everything working but id like some clarrification.
    How Can I set variables, at certain points in the animation, like the notify sfx/particles? and my particles leave behind a red residue??? where the particle effect was played

  • @DzeProject
    @DzeProject Před rokem

    so the full tutorial will not be available on yt?

  • @robpenfold9500
    @robpenfold9500 Před rokem

    Does anyone know why the animation montages don't work? I am trying to play the Arms_Reload_Montage, but it doesn't work for the arms, unless I run it as "Play Animation", which then breaks the AnimBP. Any ideas?

  • @fredcannonvalley1699
    @fredcannonvalley1699 Před rokem

    How do I make the animation only play once I've clicked without having to hold down? I'm trying to do a semi auto weapon.

  • @chankulovski
    @chankulovski Před rokem +4

    Hey Luke, amazing video as always ! I am curious, are you gonna proceed with reloading, ammunition etc in the future videos? :) Are these videos gonna be in a long series with FPS ?
    Thanks again !
    Vlad .

    • @VirtusEdu
      @VirtusEdu  Před rokem +2

      Hey, We have indeed made videos for reloading, ammunition etc as part of this course, you can see a full list of videos/topics on our website :)

  • @camielhop271
    @camielhop271 Před rokem +28

    If the gun of your character isnt moving when shooting, make sure that you have "repeat" enable so the animation will replay

    • @brigeu
      @brigeu Před 11 měsíci

      where is that at

    • @awesomegaming5978
      @awesomegaming5978 Před 11 měsíci

      @camielhop271 please tell where it is

    • @gameover_wt7077
      @gameover_wt7077 Před 11 měsíci +2

      ​@@awesomegaming5978 Click on the weapon fire state then at animation Arms fire and in details you will have an option "Loop Animation". Enable it.

    • @gameover_wt7077
      @gameover_wt7077 Před 11 měsíci +3

      @@brigeu ​Click on the weapon fire state then at animation Arms fire and in details you will have an option "Loop Animation". Enable it.

    • @LilXnas
      @LilXnas Před 11 měsíci

      @@gameover_wt7077 There isnt a option there for loop animation can you be more specific?

  • @BectonBen98
    @BectonBen98 Před rokem

    How often will this be uploaded? Its very helpful!

  • @Vkcomedyentertainment
    @Vkcomedyentertainment Před 6 měsíci

    variable from mains fps blue is not moving into animation blueprint help

  • @edodemerzel7032
    @edodemerzel7032 Před 11 měsíci +1

    Thanks for the tutorial! Question: can we attach muzzle flash particle system to the specific socket on the gun's skeleton instead of setting up its location manually? Socket using seems to be faster and more accurate (hypothetically).

    • @VirtusEdu
      @VirtusEdu  Před 11 měsíci

      Yes actually in hindsight you should be able to do that and it will work more efficiently, nice spot!

    • @edodemerzel7032
      @edodemerzel7032 Před 11 měsíci

      @@VirtusEdu Thanks for Your reply!

  • @yibblesnort
    @yibblesnort Před 11 měsíci

    for some reason whenever i press lmb the weapon doesnt stop firing. does anyone know why this is?

  • @ToastyChip
    @ToastyChip Před 11 měsíci +4

    Can anyone help me? I put in the arms fire animation and all but when I turn the "ShootWeapon" Boolean true it only moves the elbows up.

    • @awesomegaming5978
      @awesomegaming5978 Před 11 měsíci

      same, maybe it is somethin with usin a new version of ue5, but idk im usin ue5 2

    • @ToastyChip
      @ToastyChip Před 11 měsíci

      @@awesomegaming5978 I think I found a solution, it seems like if you right click and type in "arms_fire" and then get it from there instead, connect it to the other node, hit compile, it works. Idk why you have to do this, cuz it should just work from the content browser, but hey at least it works. And if you still havin issues just troubleshoot, thats how I figured this out

    • @Refref1990
      @Refref1990 Před 11 měsíci

      put the animation in loop

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

      @@Refref1990 how to do it , even assuming I did it correctly. It doesn't loop

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

      @@yasserabooh6326 I am also having this issue and I followed the tutorial to the tee. Any solution as to why this is happening ???

  • @petamericangaming6177

    How would I add animations to a custom player controller that isn't from the FP blueprint? I just have a rifle and a camera right now, but the rifle is a static mesh. Can I animate that?

  • @joeydarden3778
    @joeydarden3778 Před rokem +1

    Hey lucke I bought the course but having hard time finding the rest of the assets for the game the file you have for Fps in your drop box isn't it none of the UI or the AI chaters skeletons ect can you please help me get these files so I can continue the course. Thank luke

    • @VirtusEdu
      @VirtusEdu  Před rokem

      Hey Joey, drop me a message on Discord and I’ll point you in the right direction!

  • @Starzie_
    @Starzie_ Před 2 měsíci

    heya so, ive followed all of the steps. But when i move the particle is lagging a bit and doesn't stay in the same position

  • @trendyourdays7382
    @trendyourdays7382 Před rokem +1

    the particles doesnt show up in game any help plz

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

    Can you add an enemy tutorial?

  • @awssompro
    @awssompro Před rokem +3

    Hey I was doing the the animation for the gun shooting and When I turn the boolean to true it shoots once instead of infinitely shooting does anyone know how to fiz it

  • @JPAS-YT
    @JPAS-YT Před rokem +3

    Thank you. I love everything you do, keep it up

  • @blank_b
    @blank_b Před rokem +2

    hey what do I do if I'm doing this with a semi auto asset and I want to instead of holding down to play the animation I just click it once and it plays the whole thing once? In simpler words, how do I make it only shoot once?

    • @alexrnfl
      @alexrnfl Před rokem

      hey did you find the answer?

    • @fredcannonvalley1699
      @fredcannonvalley1699 Před rokem

      I want to know this too

    • @cactispartan
      @cactispartan Před 10 měsíci +1

      I the Arms_AnimBP section and double click on Arms_Fire there will be a box under settings called loop animation 4:50, undo it and it will play once every click. Then when I get to implimenting hit registering I'm guessing you can make it fire once every click
      Also If you find any good free use pistol models let me know because I also want to implement other weapon types like pistols, snipers

  • @Juice76155
    @Juice76155 Před 14 dny

    Whenever I move, I press the mouse button and it shoots, but the particle is fixed to the place I put it. How do I fix this?

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

    my rifle does not fire in automatic how do i fix that?

  • @Freefolk69
    @Freefolk69 Před rokem +1

    I tried following step by step but only my characters arms are moving and not the gun when shooting :(

  • @AdiG-hy1dp
    @AdiG-hy1dp Před 7 měsíci +1

    It doesn't work for me. In the Arms_AnimBP preview, it shows it playing the animation after turning on loop but doesent play the animation in the game...? Please Help Me! It does say that Axis and Action mappings are now deprecated, please use enhanced input actions and input mapping contexts instead...

  • @pescob004
    @pescob004 Před 9 měsíci

    when I click the first person corrector it doesn't take me there

  • @Hardwired_Productions
    @Hardwired_Productions Před rokem +1

    my notify is firing 6 times per single trigger?? dafuq

  • @SmithSmith-ld8wy
    @SmithSmith-ld8wy Před 3 měsíci

    My code is the exact same as the video but I can't get the firing animation to repeat! What can I do?

    • @FakeDeath_
      @FakeDeath_ Před 3 měsíci

      In WeaponFiring state click on Arms_Fire node and on right side in the settings tab check "Loop Animation" box

  • @Ianb19
    @Ianb19 Před rokem +1

    the arms on my gun just flop up and down and there is no recoil , then when i press the play button and fire it only fires once

    • @giodicapua3948
      @giodicapua3948 Před rokem

      i'm having the same problem, did u solve it?

    • @Ianb19
      @Ianb19 Před rokem +1

      @@giodicapua3948 no

    • @giodicapua3948
      @giodicapua3948 Před rokem +1

      @@Ianb19 I solved it, in the WeaponFire State in the State Machine, you just need to click once on the Arms_Fire animation and in the details panel there's an option called 'Loop Animation' that is disabled by default, enable it and there you go.

  • @JohnGold137
    @JohnGold137 Před rokem +3

    My weapon recoil animation isnt looping ive checked the loop box icon anyone no why?

    • @Ihasfinger911
      @Ihasfinger911 Před rokem +2

      EDIT: Fixed by just going back into the WeaponsFiring state and removing then replacing the Arms_Fire anim. Go figure🤔.
      Same here. It seems to be working when I preview the animation from the contents draw. Did you fix?

    • @hoboRussian0
      @hoboRussian0 Před rokem +3

      @@Ihasfinger911 im having the same problem and i tried that its still not working
      EDIT: k so click on the Arms_Fire anim in the WeaponFiring(state) and scroll down on the details tab find "loop animation" under settings and click check

    • @brigeu
      @brigeu Před 11 měsíci +1

      @@hoboRussian0 BRO THANK YOU SO MUCH!

    • @hoboRussian0
      @hoboRussian0 Před 11 měsíci

      @@brigeu yea fs

  • @Dog17248
    @Dog17248 Před 6 měsíci

    I have done the whole tutorial and when I click once the gun shoots twice

  • @amosityeluxyt8350
    @amosityeluxyt8350 Před rokem +1

    my gun just doesnt work no anymation no firing nothing help

  • @loading...7583
    @loading...7583 Před rokem

    what happened to virtus educattion?

  • @fuzzypanda1684
    @fuzzypanda1684 Před rokem +2

    Hey Luke, I've gone through several of your series start to finish. I've learned a lot over the past 6 months and love everything you do. So please take this as constructive criticism, because that's how it's intended.
    The firing animation here... doesn't look so good. It's missing any kind of vertical and horizontal movements or offsets, and the recoil overall lacks impact and looks stiff and un-organic, if that's a word.
    I know darn well you're capable of making far a better feeling recoil system than this, perhaps in a weapons firing part 2? :)
    Anyway, just an opinion from a fan, keep creating!

    • @VirtusEdu
      @VirtusEdu  Před rokem

      Hey thanks for the feedback, very constructive and I really appreciate that! We actually have a whole recoil system planned, right now what you see is just an animation and is by no means the final result :)
      Stay tuned!

    • @awesomegaming5978
      @awesomegaming5978 Před 11 měsíci

      @@VirtusEdu hey, im having an issue where when i set the firing boolean to true it only moves up the elbows and doesnt repeat it like it should, can you help me? i use ue5.2

    • @renexthegod4538
      @renexthegod4538 Před 6 měsíci

      @@awesomegaming5978 You have to put the animation on repeat

  • @resetXform
    @resetXform Před rokem

    Link does not work.

  • @mandlawi
    @mandlawi Před 11 měsíci

    hi there.
    I want to gather people with these skills to develop a first shooter game, not just a game, but a special one. So that I will tell them what to make, how each character moves and attack, what environment and so on.
    Would you please direct me where to start or how to get in contact with another person that knows better that should tell me what to do from start to end please?

    • @VirtusEdu
      @VirtusEdu  Před 11 měsíci

      Hey there, if you join our Discord server (linked in the description) you'll find 1000s of game devs and artists wanting to collaborate on projects. It's a great space to meet people and build your game

    • @mandlawi
      @mandlawi Před 11 měsíci

      @@VirtusEdu I want to join, but I can't write anything because I don't have permission. can someone accept me there please?

    • @VirtusEdu
      @VirtusEdu  Před 11 měsíci

      @@mandlawi You should have permission to join? There are no permission based restrictions. What link are you clicking?

    • @mandlawi
      @mandlawi Před 11 měsíci

      @@VirtusEdu virtus- creative co..

    • @mandlawi
      @mandlawi Před 11 měsíci

      @VirtusEdu could you add me please? Alex Andford

  • @matteoramanzini1842
    @matteoramanzini1842 Před rokem

    my Arms_Fire animation doesn't work. the character just lift the arms but the weapon doesn't move

    • @joshuaadkison2227
      @joshuaadkison2227 Před rokem

      I'm having the same issue. Have you figured it out yet?

    • @tinreydu5099
      @tinreydu5099 Před rokem +1

      @@joshuaadkison2227 Make sure to tick "loop" in Arms_Fire

    • @awesomegaming5978
      @awesomegaming5978 Před 11 měsíci

      @@tinreydu5099 where is that located?

    • @8monkeyboy841
      @8monkeyboy841 Před 11 měsíci

      ​@@tinreydu5099it did nothing

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

      i have loop ticked and none of the animations working, i left click and nothing happes did i mess up mapping the left click maybe
      @@tinreydu5099

  • @shroudoodle
    @shroudoodle Před 11 měsíci

    the animation isnt proper idk why

  • @Vexeton
    @Vexeton Před rokem

    my gun isnt moving only my hands are doing the animations

    • @gabrielmegret3939
      @gabrielmegret3939 Před rokem

      Same

    • @gabrielmegret3939
      @gabrielmegret3939 Před rokem

      Found it : DOubleClick on WeaponFiring (state), one click on Arms_Fire, then in Details : enable "Loop animation"

    • @Vexeton
      @Vexeton Před rokem

      Its because i had to put the grip point to the gun

    • @Freefolk69
      @Freefolk69 Před rokem

      How did you fix this, or did you? I have the same issue

  • @BSSC1775
    @BSSC1775 Před 3 měsíci

    yeah this didnt work for me

  • @Catdeveloper499
    @Catdeveloper499 Před rokem

    Yay

  • @JohnDoe-np7do
    @JohnDoe-np7do Před 4 měsíci

    Lol the input firing section was sad & underwhelming. Was expecting actual programming for ex using the builtin input class (if it has one) & responding to when lmouse was clicked.. something basic but not as basic as using a GUI 😂
    Edit: skipped past the whole vid & the only constant was the blueprint window 😂

  • @lolrip818
    @lolrip818 Před rokem

    First

  • @AyuAyu-ti5yr
    @AyuAyu-ti5yr Před rokem

    hi bro

  • @imrazvan9514
    @imrazvan9514 Před rokem

    im first

  • @fo0lonxbox360
    @fo0lonxbox360 Před rokem +3

    Nothing works other than the animations and arms. Everything else just doesn't work. Don't recommend. (UE5.1)