Weapon Firing | Unreal Engine 5 First Person Shooter (FPS) Beginner Tutorial | #3
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
Hey everyone, in this video we show you how to get a weapon firing in Unreal Engine 5, enjoy!
Hello virtus learning hub, how can change the recoil of the gun to something more realistic?
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
so the full tutorial will not be available on yt?
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?
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.
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 .
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 :)
If the gun of your character isnt moving when shooting, make sure that you have "repeat" enable so the animation will replay
where is that at
@camielhop271 please tell where it is
@@awesomegaming5978 Click on the weapon fire state then at animation Arms fire and in details you will have an option "Loop Animation". Enable it.
@@brigeu 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 There isnt a option there for loop animation can you be more specific?
How often will this be uploaded? Its very helpful!
variable from mains fps blue is not moving into animation blueprint help
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).
Yes actually in hindsight you should be able to do that and it will work more efficiently, nice spot!
@@VirtusEdu Thanks for Your reply!
for some reason whenever i press lmb the weapon doesnt stop firing. does anyone know why this is?
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.
same, maybe it is somethin with usin a new version of ue5, but idk im usin ue5 2
@@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
put the animation in loop
@@Refref1990 how to do it , even assuming I did it correctly. It doesn't loop
@@yasserabooh6326 I am also having this issue and I followed the tutorial to the tee. Any solution as to why this is happening ???
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?
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
Hey Joey, drop me a message on Discord and I’ll point you in the right direction!
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
the particles doesnt show up in game any help plz
Can you add an enemy tutorial?
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
same for me
Thank you. I love everything you do, keep it up
Thank you!
@@VirtusEdu Are you going to add multiple guns?
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?
hey did you find the answer?
I want to know this too
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
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?
my rifle does not fire in automatic how do i fix that?
I tried following step by step but only my characters arms are moving and not the gun when shooting :(
same as me
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...
same can someone help us
when I click the first person corrector it doesn't take me there
my notify is firing 6 times per single trigger?? dafuq
My code is the exact same as the video but I can't get the firing animation to repeat! What can I do?
In WeaponFiring state click on Arms_Fire node and on right side in the settings tab check "Loop Animation" box
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
i'm having the same problem, did u solve it?
@@giodicapua3948 no
@@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.
My weapon recoil animation isnt looping ive checked the loop box icon anyone no why?
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?
@@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
@@hoboRussian0 BRO THANK YOU SO MUCH!
@@brigeu yea fs
I have done the whole tutorial and when I click once the gun shoots twice
my gun just doesnt work no anymation no firing nothing help
what happened to virtus educattion?
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!
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!
@@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
@@awesomegaming5978 You have to put the animation on repeat
Link does not work.
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?
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
@@VirtusEdu I want to join, but I can't write anything because I don't have permission. can someone accept me there please?
@@mandlawi You should have permission to join? There are no permission based restrictions. What link are you clicking?
@@VirtusEdu virtus- creative co..
@VirtusEdu could you add me please? Alex Andford
my Arms_Fire animation doesn't work. the character just lift the arms but the weapon doesn't move
I'm having the same issue. Have you figured it out yet?
@@joshuaadkison2227 Make sure to tick "loop" in Arms_Fire
@@tinreydu5099 where is that located?
@@tinreydu5099it did nothing
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
the animation isnt proper idk why
my gun isnt moving only my hands are doing the animations
Same
Found it : DOubleClick on WeaponFiring (state), one click on Arms_Fire, then in Details : enable "Loop animation"
Its because i had to put the grip point to the gun
How did you fix this, or did you? I have the same issue
yeah this didnt work for me
Yay
Indeed!
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 😂
First
hi bro
Hey!
im first
Someone beat you to it!
Nothing works other than the animations and arms. Everything else just doesn't work. Don't recommend. (UE5.1)
Same here