No video

How To Set Up An Advanced Ammo Inventory - Unreal Engine 5 Tutorial

  Рет қаралды 5,661

Pitchfork Academy (MizzoFrizzo & Co.)

Pitchfork Academy (MizzoFrizzo & Co.)

6 ай бұрын

In this tutorial I'll show you how to set up an advanced ammunition inventory for your character, complete with reserve ammo which can be topped up by walking over weapon pickups, as well as reloading logic.
Patreon: / mizzofrizzo
Subreddit: / mizzofrizzo_tutorials
Facebook: / 884349679908510

Пікірлер: 111
@aurustarsia5244
@aurustarsia5244 5 ай бұрын
Your videos are a gift. Not just because of what you teach, but more how you do it. I got so much stronger at Unreal Engine only in the last 2-3 weeks. I can already do only the half of what you are showing us and customize the rest of it by my own, since I want to do some things slightly different. So really man.. thank you ❤️
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
That's so nice to hear, and yes, that's exactly how you should be going about it! Coding is a very personalised thing, and I am by no means an expert... 😉
@scarytrailermusic
@scarytrailermusic 23 күн бұрын
First of all thank you for what you do. You're helping the vision for my game come to life! Everything was going smooth until about 13 minutes and I noticed I didn't have some of the same logic set up that you have set up. Is there another video where you set up the spawning system up exactly like this? I don't have the same class defaults as you and I followed most of your True FPS series.
@CastledCard
@CastledCard 6 ай бұрын
Unless I missed a node to hook up, I rewarched to make sure, but there's nothing to prevent the reserve ammo from going under zero. I added a clamp to the math to make the min it can go zero, but it'll still go below zero.
@MagimanD
@MagimanD 5 ай бұрын
Did you figure this out?
@teaguewilson7372
@teaguewilson7372 4 ай бұрын
Thanks for this, your tutorials never disappoint. I'd be very interested to see how you would approach adding another two or three weapons
@fearingalma1550
@fearingalma1550 Ай бұрын
I haven't watched this yet but I already love that you're accounting for a chambered round. However, this would need to be changed for the SMG you pickup at the start, because it's open bolt, so it can't chamber a round. If the chamber is closed, there's no ammo in there. How would I go about modifying weapons with specific quirks like this?
@demonics7549
@demonics7549 6 ай бұрын
Lets goo Mizzo been waiting for this 🥳
@Karltyyy
@Karltyyy 6 ай бұрын
Love the videos. So educational and I've learned a lot. I was wondering how did you learn unreal so well? thanks!
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
I learned from youtube haha
@Karltyyy
@Karltyyy 6 ай бұрын
Class mate! Keep it up, one of the best Unreal channels on the platform@@PitchforkAcademy
@fearingalma1550
@fearingalma1550 Ай бұрын
Unfortunately I seem to have encountered another odd thing. I can't seem to get the ammo counter to update at all. It just shows 0, no matter what settings my weapons and pickups have.
@ZeroCool-t6z
@ZeroCool-t6z Ай бұрын
First off I'd like to say great tutorials. I've done several of them multiple times. However, I am having issues getting all the systems to work together. First, if I follow this playlist as is, I wouldn't be able to get past this video. the Fire function you have us edit doesn't get created until the next video. Secondly, I have done the weapon switching tutorial 3 or 4 times now and get the same result. Whenever I pickup a "same weapon" I get the message, but it doesn't spawn one in return, it just disappears. Also, if I were to pick up say an AR, then and AK and go back to the AR, I just get the same weapon message and the AR disappears. I also have the reload issue with a low magazine as someone pointed out below. I'm struggling to follow that but I think I can manage when I'm not as tired. lol. is there anyway you could do this playlist from a fresh new project and see if it works for you? I think some of the issues I'm having is not having some random code somewhere that you have. I know its a big ask, it should take your tutorials to the next level. Again, great job, keep up the good work.
@doc_100
@doc_100 Ай бұрын
Good Tutorial so far. But i have a problem. when I pick up the same 2 weapons repeatedly, the reserve ammo just starts to add up. i think it is because of the reserve ammo in the child-class is set to a number and it just spawns it with it but i can't make up where the mistake is. maybe someone can help me?
@BrutalFoX.
@BrutalFoX. 6 ай бұрын
keep up the good work, I'm sure you'll get more subscribers
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
I get more and more subscribers every day, but thanks! 😊
@6henny443
@6henny443 Ай бұрын
39:02 So I am at this point in this tut, and it all works with swap input or if I pick up a primary (AR) for a primary (AK) and a secondary (pistol) for a secondary (Uzi). But it's doing something weird. If I'm holding a pistol and I then I pick up a different AR it's fine. But when I pick that pistol back up, it shows my AR magazine for my pistol. The reserve ammo stays fine. And the same for vise versa. Holding AR. pick up a uzi, pick back up the AR, it shows my uzi mag with AR reserve. Any idea would be great thanks!
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@@6henny443 Check the massive post in the discord...
@6henny443
@6henny443 Ай бұрын
@@PitchforkAcademy thanks!
@SaxguyYT
@SaxguyYT 3 ай бұрын
I'm having a weird issue if I click play and shoot with remaining ammo it sets the mag to 30 and the reserve to 30 less rounds, but if I run it with breakpoints for testing it runs it as intended. Any Ideas as to why this is happening?
@SaxguyYT
@SaxguyYT 3 ай бұрын
ok even weirder update it's the Enhanced input action breaking it. If you just use the R key, it works just fine, lol. Now I need to figure out how to fix it.
@AsleepTheory
@AsleepTheory 25 күн бұрын
Great video thanks for the help
@PitchforkAcademy
@PitchforkAcademy 25 күн бұрын
This one has quite a few issues, but in the Discord there's a thread containing solutions for most, if not all of them. 🙂 -Mizzo.
@AsleepTheory
@AsleepTheory 25 күн бұрын
@@PitchforkAcademy Yeah I saw all the fixes for the bugs and will work on those tomorrow but nonetheless the system helped alot on my project
@kayz3124
@kayz3124 Ай бұрын
Hey MizzoFrizzo me and some other people found some bugs in this for example there is nothing to prevent the reserve ammo from going under 0. So if you could make a like a video addressing some of these bugs it would be great or even just a paragraph. Im stuck on some these bugs too but other that great job on this whole FPS series.
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
If you join the Discord server we have a very generous member who has shared his fixes.
@kayz3124
@kayz3124 Ай бұрын
@@PitchforkAcademy Hi thanks for the response i seem to have troubles finding the discord could you please provide me with link thanks.
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@kayz3124 For a limited time I'm offering lifetime access to my Discord to the first 150 people who make a one-time payment of $10USD. Head over to my Patreon to jump on board: www.patreon.com/MizzoFrizzo
@kayz3124
@kayz3124 Ай бұрын
@@PitchforkAcademy oh sorry i wish I could but I don’t have the money for that rn could u just copy and paste his fix here by chance thanks for the reply.
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@kayz3124 No there isn't enough characters lol. Just keep learning the engine until you have the skills/understanding to fix it. You can ask specific questions in public forums to get help, but at the end of the day it's just time and hard work. Best of luck! ✌️
@cornflake2563
@cornflake2563 Ай бұрын
Hello, would this be more memory hogging than hand written code?
@DylanPlayzz871
@DylanPlayzz871 2 ай бұрын
so out of curiosity. is it possible to trigger a reload animation when pressing the key to reload'? im assuming your going to release a video on doing that as a "next part" to this video. but i was going to attempt it before hand
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
Of course. Just make it a montage and run the logic via anim notifies within the montage... 🙂
@kayz3124
@kayz3124 3 ай бұрын
Hi man great tutorial but i have this bug where if you click the fire button while reloading you can shoot on any weapon any idea where i may have went wrong.
@DylanPlayzz871
@DylanPlayzz871 2 ай бұрын
I would say you can take a branch off of the is reloading area and if it is equip to true then get the ref to the us shooting and return that to false. Or can shooting ref how ever you set it up
@scoutstv9263
@scoutstv9263 26 күн бұрын
i love your videos! but will this also work with your multiplayer weapon system?
@roninnogk
@roninnogk 3 ай бұрын
Excellent content, thanks for all the work. I´ve downloaded unreal two weeks ago and only when i have time after work that I'm able to dedicate it, so I apologize for the questions. I've seen the whole True first person shooter tutorial series i'm watching now ultimate weapon system tt and I noticed that some things are different. I've already changed all spawn logic like in 2nd video of this tutorial but when I grab a gun it appears at my feet 😂 even with the sockets in the right places/right names. And in this video at 55:35 when you enter in the fire function mine appears in read-only. Sorry for the long text. Great Work
@roninnogk
@roninnogk 3 ай бұрын
After hours trying to figure out what was wrong with spawn logic, I found the problem 😂 I don't know if it's because i'm on 5.4 version. As I didn't know what to do and couldn't find anything on the subject i started to change a few things(and then redo it if it didn't work) and I noticed in "Attach Component to Component" Snap to target makes the weapons spawn on my feet but if i switch to keep relative/world spawns through the chest but none of them was working properly. but if I change "Attach Component to Component" parent to Body instead of Mesh it work (with snap to target) I don't know if it's something different in 5.4 version but it works. \Regarding the problem i had in this video "Fire function" 55:35 i still can't figure out the problem. Keep up the good work,thanks
@acegarner3248
@acegarner3248 Ай бұрын
I have the same problem I followed his weapon system tutorial but his logic for firing on that is different to how he has it on here
@DefaltThunder
@DefaltThunder Ай бұрын
Hi man , i have a question , do you use actors for bullets? You shooting something out of that gun? Thanks
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@DefaltThunder No just line traces. Only reason for an actor that I can think of is if you're making a sniper game or like a Fallout style VATS system with slow-motion tracking of the bullet...
@DefaltThunder
@DefaltThunder Ай бұрын
@@PitchforkAcademy Im making a top down shooter , the problem with line trace Is that It looks bad with the line provided by the function... I would to have something more editable ,not that Red line with the box on the end , Just a line .
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@@DefaltThunder That's just a debug line, my guy.
@DefaltThunder
@DefaltThunder Ай бұрын
@@PitchforkAcademy what you suggest to deal damage in a shooter game if not actors as bullets?
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@@DefaltThunder Apply Damage and Event Any Damage nodes.
@patrikondris442
@patrikondris442 2 күн бұрын
15:20 in which video this is what it feeds on
@iceman11a
@iceman11a Ай бұрын
Hi! Mizzo, Thanks for the videos. It's just for some unknown reason. I can't see the words in your video. Do you have another video with better graphics, As long as you can see the words
@iceman11a
@iceman11a Ай бұрын
I fixed the videos issue. It's just from what I see in here I missed 1 video. The setup is not the same from the 1st weapons system video. Can you give an idea on the 2nd video on this.
@fearingalma1550
@fearingalma1550 Ай бұрын
@28:40 - Where did this BPI come from? Neither of the previous two weapon system videos showed you making this. Was that part of another series?
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
If I remember correctly it came from the left hand IK, hand sway, and procedural recoil tute. These videos were all done as part of my TFPS Series... kzfaq.info/get/bejne/nrR8Zqh9qLPSaGQ.html
@fearingalma1550
@fearingalma1550 Ай бұрын
@@PitchforkAcademy In the Ultimate Weapons System playlist, that's 2 videos in the future, so it just kinda threw me for a loop there. It's still a testament to your video style that for the most part I've been following along quite easily, and you reply to comments quite generously. Thanks for the pointer!
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@fearingalma1550 Oh yeah I put that playlist together as an afterthought. Should reorder them so it doesn't happen again... I'm planning a new weapon system tutorial soon to put more things all in one video...
@michalpfeiffer9553
@michalpfeiffer9553 3 ай бұрын
I found a small issue or two: 1) You can easily spam reload and take more ammo than neeeded 2) When reloading, it sets ammo in the magazine to full even when you dont have the reserve ammo to do the reload Idk if it has something to do with the code or 5.4.1
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
Code probably needs some tweaking..
@slavikcrusader96
@slavikcrusader96 3 ай бұрын
@@PitchforkAcademy after doing some tweaks on the reload, i found a solution that may not be 100% perfect (other than [R] spam to reload) but is a fix nonetheless made a short video documenting it encase others have the issue and need some form of extra help: kzfaq.info/get/bejne/gr9gktycprq6ZGQ.html the video is unlisted and not a rick roll P.S: this is my main account, and the message with the issues above is my alt account on my phone
@jvkmakerspace227
@jvkmakerspace227 2 ай бұрын
@@slavikcrusader96 This worked, thank you for posting it.
@smoguevert6060
@smoguevert6060 6 ай бұрын
thanks i hope i could do somethings simlilary good one day .. :(
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
Practice practice practice, and discovering more and more nodes and ways of storing, accessing, and processing data. 🫶
@smoguevert6060
@smoguevert6060 6 ай бұрын
@@PitchforkAcademy thanks for taking the time to answer !!🫶🏼
@Ru-mx5sz
@Ru-mx5sz 4 ай бұрын
Nice video! but I have a problem, when I change weapons the reserve ammo resets, for example if I reload and from 300 I stay with 280, when I change weapon it returns to 300...(sorry for my english i used google translate)
@xtazeproductions260
@xtazeproductions260 3 күн бұрын
Same problem. If I remove the set reserve ammo at the end of the switch weapon, it seems to solve, this particular problem but then each weapon share the same reserve ammo
@zonerda
@zonerda 6 ай бұрын
I think i did something wrong here but dont know what 😂 my reserve ammo is not showing in testing phase at about 37:00. The ammo count in the left where the reserve is in the widget. I tried to change the things same as you.
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
I don't know what you did wrong either, man...
@zonerda
@zonerda 6 ай бұрын
Oh. It is the max ammo what wasnt showing but still wondering what is the problem. Watched the video again and havent figure it out @@PitchforkAcademy
@zonerda
@zonerda 6 ай бұрын
Noticed when try to change the ammo types, reserve ammos, max ammosa and indexes in weapons pickups they wont change. they are same all of them.
@glebkorolyov3867
@glebkorolyov3867 3 ай бұрын
Hello. Did you realize, what was wrong?
@wholesomest_man
@wholesomest_man 2 ай бұрын
@@glebkorolyov3867 Hey i found out what was wrong, assuming we were having the same issue where when picking up the weapon the left side ammo (magazine size) was showing but the right side ammo (Reserve ammo) was showing as nothing. Around the 24:20ish code section of the video check the clamp and make sure its connected to the "Make Struct_Ammo" reserve ammo node AND the "Set" Reserve Ammo node. I forgot to set my reserve ammo so it was just showing as nothing. Hope this helps!
@spiritdragon6224
@spiritdragon6224 6 ай бұрын
having the event interact event to spawn weapon node in pickup master didn't properly transfer the variables under spawn weapon. so i had to delete the event from the parent and paste it under each child.
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
That's weird...
@spiritdragon6224
@spiritdragon6224 6 ай бұрын
yeah it looks like a problem with the engine, not anything you did@@PitchforkAcademy
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
@@spiritdragon6224 It's more likely you made a mistake, tbh.
@spiritdragon6224
@spiritdragon6224 6 ай бұрын
Normally id agree with you but exiting the project and going back in seemed to fix it@@PitchforkAcademy
@aurustarsia5244
@aurustarsia5244 5 ай бұрын
Why exactly are you adding the reload sound instead of adding it within the animation itself? Wouldn’t it be more clean then?
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Of course it would. As I clearly state in the video, it's just for an indication that the code is executing.
@MagimanD
@MagimanD 5 ай бұрын
Hello! sorry to keep asking questions I'm trying to make it so if the reserve ammo is less than the mag size in value, we take whatever ammo available to fill the mag but when I can't reload the entire mag I want to take whatever reserve is available and reload that. ex : mag size is 34 have 10 ammo and 10 reserve and when reloading is giving me full mag instead of 20
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Ahh yes. Set the ammo as reserve ammo clamped to the magazine size!
@MagimanD
@MagimanD 5 ай бұрын
Life saver!🙌@@PitchforkAcademy
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
@@MagimanD Don't forget to minus the output of the clamp node off of the reserve!
@MagimanD
@MagimanD 5 ай бұрын
I did thank you so much!@@PitchforkAcademy
@MagimanD
@MagimanD 5 ай бұрын
Hey man great vids, got a small question my semi auto keeps firing even tho it reaches 0 ammo making the counter -1 Should a timer approach fix this?
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Yeah sorry that was an oversight on my part. Just put a check to see if the ammo is greater than zero as part of the check can fire function and don't let the player fire if it isn't.
@MagimanD
@MagimanD 5 ай бұрын
@@PitchforkAcademy Thank you so much!
@blackmaskedman
@blackmaskedman 6 ай бұрын
How do i make reloading animation?
@DylanPlayzz871
@DylanPlayzz871 2 ай бұрын
I would suggest watching his animation videos. When he teaches how to ads animations and stuff he teaches how to use it all. So I would do all of that but make a reload animation. And in the same place you’re calling animations for ADS and regular IDLE animations. I’d also make one to play when a button is pressed (the reload button) so that reload animation with play instead of idle or ADS anims
@Huntaurz
@Huntaurz 12 күн бұрын
I may be late but you could have gone to his fps game making video of ammo creation, which he explains how to easily grab a animation starter pack on unreal engine and quickly place it on your character
@blackmaskedman
@blackmaskedman 12 күн бұрын
@Huntaurz I didn't really make it I was looking into the tutorial that fit my needs and I found another
@Huntaurz
@Huntaurz 12 күн бұрын
@@blackmaskedman Glad you found a solution
@Messir
@Messir 6 ай бұрын
Wooohoo you're my maaaan!!!!!
@Mohammed02
@Mohammed02 6 ай бұрын
great work>> but when I keep reloading it's Go down to negative numbers ?
@Mohammed02
@Mohammed02 6 ай бұрын
you need to make a branch at first if the reserve ammo greater than zero
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
An easy bug to fix. 😉
@Mohammed02
@Mohammed02 6 ай бұрын
u r legend@@PitchforkAcademy
@MagimanD
@MagimanD 5 ай бұрын
@@Mohammed02 Thank you!
@Mohammed02
@Mohammed02 5 ай бұрын
U welcome@@MagimanD
@HamzaAhmed-rm9gk
@HamzaAhmed-rm9gk 6 ай бұрын
Can you make building system please
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
If I do, it won't be any time soon. Sorry. ✌️
@HamzaAhmed-rm9gk
@HamzaAhmed-rm9gk 6 ай бұрын
@@PitchforkAcademy Any time you don't have to do it now
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
@@HamzaAhmed-rm9gk I probably won't ever do it. There are plenty of decent tutorials on the subject already...
@Jesters-Jinx
@Jesters-Jinx 6 ай бұрын
Where do you get your weapons from?
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
Free marketplace assets. Watch my weapons system with simulated physics pickups tutorial. 👍
@patrikondris442
@patrikondris442 Күн бұрын
1:01:56
@patrikondris442
@patrikondris442 2 күн бұрын
35:31
@emilweinbergjensen3565
@emilweinbergjensen3565 6 ай бұрын
Will this work with your true fps turtorial?
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
Of course, but you'd probably want to swap the weapon spawning logic out with what I lay out in the Two Weapon System tutorial if you don't want things to get confusing...
@emilweinbergjensen3565
@emilweinbergjensen3565 6 ай бұрын
@@PitchforkAcademy sounds like I got a lot of work a head of me 😅 but thanks
@PitchforkAcademy
@PitchforkAcademy 6 ай бұрын
@@emilweinbergjensen3565 It's not work if you love what you're doing! 😁
@emilweinbergjensen3565
@emilweinbergjensen3565 6 ай бұрын
@@PitchforkAcademy thats true
How To Load And Unload Sublevels For Optimisation - Unreal Engine 5 Tutorial
27:59
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 4,8 М.
How To Set Up Semi-Auto, Full-Auto, and Burst Fire Modes - Unreal Engine 5 Tutorial
25:38
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 4,4 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 31 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 9 МЛН
They made a game about philosophy...
23:19
Real Civil Engineer
Рет қаралды 376 М.
ER Doctor REACTS to Marvel's Deadpool Fight Injuries
8:59
Doctor ER
Рет қаралды 2,1 МЛН
I solved Unreal Engine's Package Size Problem...
14:35
Cobra Code
Рет қаралды 67 М.
3D AI Model Generation is Getting GOOD - UE5.4 Unreal Engine
12:25
When a CIA Hacker Goes Rogue
23:09
TyFrom99
Рет қаралды 1,8 МЛН
I Tried To Beat Minecraft Backwards
18:53
Contraption8or
Рет қаралды 1,1 МЛН
How To Make A Third Person Shooter - Unreal Engine 5 Tutorial
57:03
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 15 М.
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 206 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 509 М.