Setting Up Ammo And Reloading | Shooter Minigame Part 3 - Unreal Engine Tutorial

  Рет қаралды 29,583

Matt Aspland

Matt Aspland

Күн бұрын

Пікірлер: 86
@kendarr
@kendarr Жыл бұрын
Thank you, from the bottom my heart, I spent the last 2 hours trying to figure out the math, as I suck ass at it, and you not only showed me how to do it, but also explained it. You're the kind of people that allow me to learn and improve my self, without people like you teaching, there would be no one learning, thank you for real.
@Playlists_plus7707
@Playlists_plus7707 2 жыл бұрын
I just wanted to say, I love how you are so thorough as to show us every step on every sprite and blue print. It really makes your content so much easier to comprehend/follow. Thanks so much.
@ericmatthews9894
@ericmatthews9894 Жыл бұрын
Finally, simple and without all the structures, enums and weapon blueprints. Thanks
@sinayagubi8805
@sinayagubi8805 3 жыл бұрын
I think I just found a very underrated KZbin channel with great content for free 🤔
@gonfurnier6941
@gonfurnier6941 3 жыл бұрын
Thank you so much Matt for all your tutorials! Your videos about implementation and animation for the player control are super useful to me! Keep doing them because you are an excellent teacher, cheers from Argentina
@pickard1
@pickard1 2 жыл бұрын
Everything you post is fantastic. I had a Gun Blueprint in my project but this showed me how to migrate almost everything to my Third Person Character and it all worked perfectly. On to Part 4!
@nekospaw
@nekospaw 11 ай бұрын
just wanted to say thanks for a nice, easy to follow tutorial - really helped with my HOTD style shooter!
@IllGib
@IllGib Жыл бұрын
Dude, by accident hopefully you just helped me solving a problem i had with my inventory/build system XD I couldn't find a way to update the amount of resources i have in my inventory after i dropped into the building to repair, now seems to finally work after days of research!
@stevewynn4612
@stevewynn4612 3 жыл бұрын
It will be fun to see the fps games that folks make after watching this series.
@dylanking000archive
@dylanking000archive 3 жыл бұрын
man thank you so much for this series. so far zero problems in ue5 btw
@soyoliver4119
@soyoliver4119 3 жыл бұрын
Thank you so much for this videos man, don't listen to the bad comments, I am actually falling in love with Unreal just because of you. Unity made me fall out of love with game dev, it is so much more complicated than Unreal, you make it look so easy, keep doing the great job you do man and thank you so much!
@BillionaireMarket
@BillionaireMarket Жыл бұрын
you missed what if the current mag is already full. it allows me to reload still.
@aceniper8239
@aceniper8239 Жыл бұрын
when my bullets are at 0 i can still shoot? can anyone fix this problem?
@devactor9595
@devactor9595 2 жыл бұрын
u are the best
@RomeoVarga
@RomeoVarga 4 ай бұрын
Thank you so much, Matt! Wonderful solution. For me reloading ends up with 1 extra round which is weirdly displayed as a number equal to the remaining max. Example: start with 30/120. Reloading results in displaying 90/90, fire one, it then goes to 30/90 (as it should be). Reload again, 60/60 etc. Also, the last clip gets anulled: when left with 0/30, reloading results in 0/0. Anyone else experience this?
@Progamezia
@Progamezia 3 жыл бұрын
Amazing as always,this is a lifesaver because I'm working on an fps
@MukulchSarma-tp3oe
@MukulchSarma-tp3oe 3 жыл бұрын
I don't know what can I do for you, except Subscribing??!! Your are so much dedicated!!! And, what to say about the tutorials???!! Great!!
@ahmedalhawar595
@ahmedalhawar595 2 жыл бұрын
Bro you is a living legend
@trypresident774
@trypresident774 2 жыл бұрын
question what if iam tryin to add more then one gun how do i do that like i wanna add a pistol an another rifle please help thanks
@RealJackJames
@RealJackJames 3 жыл бұрын
Thanks
@selimsaidi378
@selimsaidi378 4 ай бұрын
hello thanks a lot for all your tut dude ! can you cover ho to make a shotgun or sniper reload ball by ball ? it would be awesome
@BamboosGood
@BamboosGood 2 жыл бұрын
Great tutorial as always! I tried to do this myself but my brain kept hurting lol, should of probably slept more.
@tomhikon
@tomhikon Жыл бұрын
That's normal when programming anything really 😅
@jlaw2257
@jlaw2257 3 жыл бұрын
Could you do an aiming or iron sights system next. Love the series btw!
@wolfiedgr8t
@wolfiedgr8t 3 жыл бұрын
Excellent Matt thanks 👍
@M0n002
@M0n002 6 ай бұрын
Can someone help me? I wanted to put an animation on this but when I tried my character did the animation but stayed t-pose for a few seconds afterwards, what can I do?
@gnclx
@gnclx 3 жыл бұрын
Can you make inventory system next tutorial?
@scoppergaban1682
@scoppergaban1682 Жыл бұрын
Everything is very good, the only thing that's a shame is the customisation, because your blueprint doesn't allow you to have several weapons with magazines that have a different number of rounds. For example, if I have a pistol (10/100 rounds) and I use your nodes, when I reload, it will come to (30/70) ... because you ask for the return value to be "30", you can change it of course, but that still won't allow you to have several different weapons, unless you copy the function...
@ciastuch_plastuch
@ciastuch_plastuch Жыл бұрын
I just want to know if You have different types of guns (f.e. pistol and assault rifle with different amount of magazine size) - How to set the reloading amount of bullets at 4:35 ?
@ciastuch_plastuch
@ciastuch_plastuch Жыл бұрын
Okey, i figured it out already :) I've set the pickup class for guns and set different amount of bullets in magazine, then I used this construciton in reload/use ammo tree :)
@joshknight2463
@joshknight2463 2 жыл бұрын
What if I want to reload a single bullet with one shot at a time before reloading as it has been breaking it
@Cojanx1
@Cojanx1 3 жыл бұрын
works perfectly :) thanks
@Saz-wy5bg
@Saz-wy5bg 2 жыл бұрын
This is a great video but if you just spam "R" the reload sound will continuously repeat even if the gun is full and not reloading.
@Deserthound
@Deserthound 2 жыл бұрын
This is easily fixed by adding get current mag and less than 30, attaching that and the !=0 to an AND node and connecting that to the branch before the do once node
@Abran_12
@Abran_12 2 жыл бұрын
@@Deserthound Same Problem. Tried your solution but it wont work. other than that its great
@Deserthound
@Deserthound 2 жыл бұрын
@@Abran_12 hmm not sure honestly , it worked for me when I had it set up that way but it’s been a while since I had that project open
@Abran_12
@Abran_12 2 жыл бұрын
@@Deserthound its good its a small fix everything else is fine
@PROTOTYPZ
@PROTOTYPZ 2 жыл бұрын
@@Abran_12 did you make sure to add the Do-Once node and also add a delay?
@thatchyhurdle4271
@thatchyhurdle4271 2 жыл бұрын
where do i add a sound effect so that it makes a noise when you are trying to shoot with 0 bullets ?
@LocutusMoW
@LocutusMoW 2 жыл бұрын
I had the same problem.
@salsalvador8317
@salsalvador8317 2 жыл бұрын
@@LocutusMoW I'd say in the firing logic use a sequence: from the first point start you firing code, from the second start a branch and if ammo and magazine= 0 then play a sound. Be aware that you'll need a do once node if your weapon is automatic, otherwise the sound will be repeating as long as you press the shooting button
@devactor9595
@devactor9595 2 жыл бұрын
Thanks ur the best!
@kiseli666
@kiseli666 Жыл бұрын
Amazing tutorial, thank you very much. You are a great teacher. Everything works but I am making VR shooter game and have 2 pistols for both hands. When I call the function no matter with which gun I am shooting both guns are using ammunition, I figured because it is same function. SO is there a simpler solution than to recreate everything again for second hand/gun?
@tomhikon
@tomhikon Жыл бұрын
I'll be honest I never got it to work properly for myself. However look up using a flip-flop node in where the projectile is spawning from. There were a couple sites I saw talking about it.
@kingukitsune5622
@kingukitsune5622 Жыл бұрын
Hello Mr. Aspland! I have a important question: Is there a way to add ammo to the max ammo through item pickup? I've tried Google and couldn't find any related topics other than setting ammo for different weapons. I visited Unreal Engine Dev community and even tried to AddCustomEvent>AddAmmo into the player blueprint but I haven't any luck. My integers are Ammo (Mag) and MaxAmmo (Max Ammo). I implement the Temp Ammo (for me, Starting Ammo) into the function and whenever I go pickup the ammo item, either nothing happens or the Mag increases past its limit (50). Here are my Integer values: Ammo (50), Starting Ammo (50), Max Ammo (360). Did I miss a step or are my Integer values wrong? Thank you very much V/r Kitsune, K.
@IllGib
@IllGib Жыл бұрын
Tried to add to the Max of the clamp node? Probably is that's blocking the mag to go over it's previous max.
@itzamino995
@itzamino995 3 жыл бұрын
I already did what you say but my ammo is auto-reloading when I press the fire button any help
@Salih_Ertürk
@Salih_Ertürk 2 жыл бұрын
Do you mind if I try these on 5?
@POPCORNGameMovia
@POPCORNGameMovia 2 жыл бұрын
Hey and friendly greetings :) I did everything all works fine, but only when shooting walls and floor. Is there a way to decrease ammo when shooting zombies? I use line trace and point damage. Thank you for the tutorial, really useful.
@timkerchman2191
@timkerchman2191 2 жыл бұрын
So I'm following this series. I was wondering how to implement the not unlimited ammo? I got notes from other sources but when put the code in the math just doesn't seem 2 add up.
@timkerchman2191
@timkerchman2191 2 жыл бұрын
Meaning when I put the supply crate to add ammo it doesn't do the math correctly with the way your series goes. I know the notes work when I follow the video from where I got them so any help would be appreciated .
@dizzy2k-_-410
@dizzy2k-_-410 9 ай бұрын
everything is fine untill it comes to using the weapon again it just doesnt shoot h
@RozvozceTofu
@RozvozceTofu 2 жыл бұрын
nice, tryed first time with replication and works perfectly
@flyingroads3498
@flyingroads3498 2 жыл бұрын
thanks a lot
@flaviocosta198
@flaviocosta198 Жыл бұрын
thankss
@Faizy_Writes
@Faizy_Writes 3 жыл бұрын
John Wick Game! 😃
@charan3278
@charan3278 3 жыл бұрын
How to make it work in mobile
@thebluepurple
@thebluepurple Жыл бұрын
Hey Matt, I have followed this tutorial but I can still shoot when it hits 0/50, could you help?
@sweatyhaggis4303
@sweatyhaggis4303 Жыл бұрын
Having this same issue
@cyclo920
@cyclo920 3 жыл бұрын
First comment! Yay
@DianeSLang
@DianeSLang 3 жыл бұрын
Is Unreal Engine 5 programming blueprints functions work the same way as Unreal Engine 4 so another words buy me watching tutorials for ue4 will they working on unreal engine 5 please reply
@Deserthound
@Deserthound 2 жыл бұрын
yes some things are named different like multiply float is just multiply now
@ZeroNineFilms
@ZeroNineFilms 2 жыл бұрын
it was going fine till i added the reload function an viewport display like i tested the gun it shot sounds worked but after everything else when i start it it doesn't shoot any more Edit: it was cause i didnt set my things to not equal to but now my ammo text doesnt change but shooting do work
@JOEFRAUST
@JOEFRAUST 9 ай бұрын
I'm having a similar problem where my ammo doesn't move at all
@Springrollsamurai
@Springrollsamurai 3 жыл бұрын
I can’t find game files pls help
@patrickmiller1723
@patrickmiller1723 2 жыл бұрын
Having a bit of trouble my gun is only showing 0/0 in the view port does anyone know why ?
@maaschmellow2683
@maaschmellow2683 2 жыл бұрын
2:05 ;D
@luckyraj815
@luckyraj815 3 жыл бұрын
Next deathmatch system
@booradev
@booradev 3 жыл бұрын
umm who is that 1 dislike? Unity user?
@yaroslavazxM
@yaroslavazxM 3 жыл бұрын
Maybe I'm fourth?
@kids24359
@kids24359 2 ай бұрын
dosnt work
@ZXQ07
@ZXQ07 3 жыл бұрын
What about reloading automatically when there is no ammo in magazine?
@meganmartin9324
@meganmartin9324 3 жыл бұрын
you can put a branch with the condition as ammo in mag = 0. On true call the reload function
@s.e.c.u.8340
@s.e.c.u.8340 3 жыл бұрын
@@meganmartin9324 and if there are no spare ammo you could make it play a click sound
@ZXQ07
@ZXQ07 3 жыл бұрын
@@meganmartin9324 thank man
@ZXQ07
@ZXQ07 3 жыл бұрын
@@s.e.c.u.8340 thank man
@s.e.c.u.8340
@s.e.c.u.8340 3 жыл бұрын
@@ZXQ07 np
@glorymanheretosleep
@glorymanheretosleep 9 ай бұрын
Hmnmm....after I press the reload key, the firing won't start again.
@V-A-N-G-U-A-R-D
@V-A-N-G-U-A-R-D 2 жыл бұрын
Thanks
Markiplier and JackSepticEye Compete to Make a Game in 2 hours
22:07
Corridor Crew
Рет қаралды 3,5 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Setting Up Ammo System | Unreal Engine Tutorial
6:16
Studio Bit Byte Games
Рет қаралды 9 М.
How To Damage And Heal The Player In Unreal Engine 5 (Tutorial)
15:43
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН