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

  Рет қаралды 26,206

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to set up an ammo system. This will allow us to use and reload our ammo, and also set up an optional infinite ammo.
Reloading SFX: freesound.org/people/SamsterB...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:23 - Overview
01:14 - Use Ammo
03:47 - Reload Ammo (+ Infinite Ammo)
11:44 - Disable Shooting While Reloading
13:40 - Showing The Ammo On Screen
17:22 - Final Overview
19:06 - Outro
___________________________________________________________________________
My Public Video List: trello.com/b/7vJgXzBm
My Patreon Page: / mattaspland
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
All My Social Media Links: linktr.ee/MattAspland
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
My Patreon Page: / mattaspland
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :)
___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Пікірлер: 82
@janimusicshorts7707
@janimusicshorts7707 Жыл бұрын
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.
@gonfurnier6941
@gonfurnier6941 2 жыл бұрын
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!
@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.
@ericmatthews9894
@ericmatthews9894 Жыл бұрын
Finally, simple and without all the structures, enums and weapon blueprints. Thanks
@nekospaw
@nekospaw 3 ай бұрын
just wanted to say thanks for a nice, easy to follow tutorial - really helped with my HOTD style shooter!
@dylanking165
@dylanking165 2 жыл бұрын
man thank you so much for this series. so far zero problems in ue5 btw
@Progamezia
@Progamezia 2 жыл бұрын
Amazing as always,this is a lifesaver because I'm working on an fps
@sinayagubi8805
@sinayagubi8805 2 жыл бұрын
I think I just found a very underrated KZbin channel with great content for free 🤔
@jlaw2257
@jlaw2257 2 жыл бұрын
Could you do an aiming or iron sights system next. Love the series btw!
@IllGib
@IllGib 10 ай бұрын
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 2 жыл бұрын
It will be fun to see the fps games that folks make after watching this series.
@wolfiedgr8t
@wolfiedgr8t 2 жыл бұрын
Excellent Matt thanks 👍
@IqesReal
@IqesReal 2 жыл бұрын
works perfectly :) thanks
@ahmedalhawar595
@ahmedalhawar595 Жыл бұрын
Bro you is a living legend
@soyoliver4119
@soyoliver4119 2 жыл бұрын
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!
@devactor9595
@devactor9595 2 жыл бұрын
Thanks ur the best!
@MukulchSarma-tp3oe
@MukulchSarma-tp3oe 2 жыл бұрын
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!!
@RealJackJames
@RealJackJames 2 жыл бұрын
Thanks
@devactor9595
@devactor9595 2 жыл бұрын
u are the best
@HamalgamUB
@HamalgamUB Жыл бұрын
Great tutorial as always! I tried to do this myself but my brain kept hurting lol, should of probably slept more.
@tomhikon
@tomhikon 8 ай бұрын
That's normal when programming anything really 😅
@POPCORNGameMovia
@POPCORNGameMovia Жыл бұрын
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.
@gnclx
@gnclx 2 жыл бұрын
Can you make inventory system next tutorial?
@flyingroads3498
@flyingroads3498 Жыл бұрын
thanks a lot
@trypresident774
@trypresident774 Жыл бұрын
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
@flaviocosta198
@flaviocosta198 6 ай бұрын
thankss
@kiseli666
@kiseli666 10 ай бұрын
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 8 ай бұрын
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.
@itzamino995
@itzamino995 2 жыл бұрын
I already did what you say but my ammo is auto-reloading when I press the fire button any help
@RozvozceTofu
@RozvozceTofu Жыл бұрын
nice, tryed first time with replication and works perfectly
@scoppergaban1682
@scoppergaban1682 10 ай бұрын
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...
@saliherturk9440
@saliherturk9440 Жыл бұрын
Do you mind if I try these on 5?
@aceniper8239
@aceniper8239 3 ай бұрын
when my bullets are at 0 i can still shoot? can anyone fix this problem?
@ciastuch_plastuch
@ciastuch_plastuch 6 ай бұрын
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 6 ай бұрын
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 Жыл бұрын
What if I want to reload a single bullet with one shot at a time before reloading as it has been breaking it
@timkerchman2191
@timkerchman2191 Жыл бұрын
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 Жыл бұрын
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 .
@DianeSLang
@DianeSLang 2 жыл бұрын
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
@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 10 ай бұрын
Tried to add to the Max of the clamp node? Probably is that's blocking the mag to go over it's previous max.
@Faizy_Writes
@Faizy_Writes 2 жыл бұрын
John Wick Game! 😃
@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 Жыл бұрын
I had the same problem.
@salsalvador8317
@salsalvador8317 Жыл бұрын
@@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
@luckyraj815
@luckyraj815 2 жыл бұрын
Next deathmatch system
@BillionaireMarket
@BillionaireMarket 10 ай бұрын
you missed what if the current mag is already full. it allows me to reload still.
@charan3278
@charan3278 2 жыл бұрын
How to make it work in mobile
@Springrollsamurai
@Springrollsamurai 2 жыл бұрын
I can’t find game files pls help
@thebluepurple
@thebluepurple Жыл бұрын
Hey Matt, I have followed this tutorial but I can still shoot when it hits 0/50, could you help?
@sweatyhaggis4303
@sweatyhaggis4303 4 ай бұрын
Having this same issue
@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
@jurassiccagan7621
@jurassiccagan7621 Жыл бұрын
@@Deserthound Same Problem. Tried your solution but it wont work. other than that its great
@Deserthound
@Deserthound Жыл бұрын
@@jurassiccagan7621 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
@jurassiccagan7621
@jurassiccagan7621 Жыл бұрын
@@Deserthound its good its a small fix everything else is fine
@PROTOTYPZ
@PROTOTYPZ Жыл бұрын
@@jurassiccagan7621 did you make sure to add the Do-Once node and also add a delay?
@glorymanheretosleep
@glorymanheretosleep Ай бұрын
Hmnmm....after I press the reload key, the firing won't start again.
@patrickmiller1723
@patrickmiller1723 Жыл бұрын
Having a bit of trouble my gun is only showing 0/0 in the view port does anyone know why ?
@maaschmellow2683
@maaschmellow2683 Жыл бұрын
2:05 ;D
@dizzy2k-_-410
@dizzy2k-_-410 Ай бұрын
everything is fine untill it comes to using the weapon again it just doesnt shoot h
@ZeroNineFilms
@ZeroNineFilms Жыл бұрын
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 18 күн бұрын
I'm having a similar problem where my ammo doesn't move at all
@Levelonesucks
@Levelonesucks 2 жыл бұрын
lmao, noticed almost half way through, my world day time is synced, it's also 11:53 for me.
@cyclo920
@cyclo920 2 жыл бұрын
First comment! Yay
@booradev
@booradev 2 жыл бұрын
umm who is that 1 dislike? Unity user?
@yaroslavazxM
@yaroslavazxM 2 жыл бұрын
Maybe I'm fourth?
@ZXQ07
@ZXQ07 2 жыл бұрын
What about reloading automatically when there is no ammo in magazine?
@meganmartin9324
@meganmartin9324 2 жыл бұрын
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 2 жыл бұрын
@@meganmartin9324 and if there are no spare ammo you could make it play a click sound
@ZXQ07
@ZXQ07 2 жыл бұрын
@@meganmartin9324 thank man
@ZXQ07
@ZXQ07 2 жыл бұрын
@@s.e.c.u.8340 thank man
@s.e.c.u.8340
@s.e.c.u.8340 2 жыл бұрын
@@ZXQ07 np
@V-A-N-G-U-A-R-D
@V-A-N-G-U-A-R-D Жыл бұрын
Thanks
How to generate Normal Map for any texture | iClone 8 Tutorial
7:15
Freedom Arts - 3D Animation & Game Developer
Рет қаралды 33
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 114 МЛН
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 16 МЛН
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
Unreal Engine Customize Weapon Tutorial
6:07
Seredias
Рет қаралды 6 М.
Unreal Engine 5 Tutorial -  Wave Mode Part 5: Enemy Pool
14:54
Ryan Laley
Рет қаралды 4,7 М.
Levelling Up / EXP System - Unreal Engine Tutorial
15:41
Matt Aspland
Рет қаралды 17 М.
How To Create Bullet Holes In Unreal Engine 5 (Tutorial)
7:23
Matt Aspland
Рет қаралды 14 М.
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 114 МЛН