How to Pickup Health Collectables in Unreal Engine 5

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up guys welcome to new Unreal Engine 5 tutorial today I am going to show you on how to pick up Health Bots that will basically give you more Health it's gonna be a very easy build to follow so let's get started alright so first of all let's create the health collectible so I just right click and create a new blueprint class and this will be an actor let's call this BP score and health collector it's not bad I just go ahead and open this up so the first thing you need to do is go and add a static mesh in this case you can put whatever you want you can put a custom model in my case I don't really have anything so I'm gonna go ahead and use randomly put an icon here maybe this editor helped okay I'm gonna be using this uh so let me change the skills but to maybe 0.5 there we go so it's a bit smaller let's go down and change this to have no collision and what we're going to do instead is let the scene root and add a collision in this case it will be a sphere collision and it's going to be the trigger so basically when the player will collide with this trigger well it will basically go ahead and uh pick up everything so I can go ahead and change this to your radio so it's a bit bigger and we'll have a better feeling because we'll pick it up a bit uh before then when we actually enter into the model and it will just give a better sensation now let's go ahead and make sure this trigger is set to overlap o Dynamic and now what we're going to do let's go on to the component beginner lap which is when an actor basically goes ahead and collides with it and with that happens we're going to do is make sure that this actor is the player so what I like to do is just go ahead and ask if it has the tagged player so let's go also and quickly just add that tag into our third person character so let's go into the blueprint and I'm gonna go into the uh going to tag and now in the actor tag and go ahead and just add the player tag so now I'm going to go ahead and make sure that when the player collides we are going to go ahead can I connect this there we go and in here cast to the third person character okay and in this case I'm gonna do B uh calling an event that will increase my health right now I have created a sample health system so you can see my tutorial for that basically I just have a health variable right now so that's 70 and then I just have a widget which will just have a single slider and will show up the health on the top left corner of the screen so let's go ahead and drag our health collector into the scene over here drag it there there we go and uh we're going to do is go into the third person character and we're gonna create a new custom event that we will basically call from our health collector to basically increase our health so let's go ahead and just right click custom event and we just increase health for example and what we can do is go ahead and add an input so this will be a new help for example right and we can change this to be a float and then what we can do is just get our health and just basically add it with the one in common which in this case will be this one and now we will use set held once again and also let's go ahead and make sure that you know help is uh basically less than equal than uh the maximum which is 100 so if health is bigger and then 100 and go ahead and put this here and set it to be a hundred alright so now we can test this and we go into how collector and speak up health so be was increased Health right and we can put for example something as 10. and now what I can do is put a bit more of this health collectors in the scene so let's duplicate them and put it here here whatever right okay let's go pick it up so you can see it will increase my health and looks pretty cool now of course uh we have we have to you know get rid of them once you got them so let's go here and just do a destroy actor so we just get rid of them and now let's also just go ahead and play a little sound so before we destroy it and I say play sound at location and let's play for example this camera shutter you know I don't have a cool sound here so I'm gonna just go ahead and leave this one get at your location and now what we can do is also just make a spin by default because I think it will cool it faces slowly spinning it will give this a collectible effect so what we can do is just go and add the rotated movement and we can add a Nexus on there so now we can use perfect sample 100 on the z-axis and now slowly it will rotate so now I can go ahead and pick it up it will play some account and disappear as against it and you could even go ahead and play some you know pick up particles or whatever you want to live it how you want so that's it guys if you found this tutorial helpful I really appreciate if you could like the video and subscribe to my channel the profiles will be available in my kitchen and the number so check them out join my Discord server follow me on my socials and now yes with all that said bye bye [Music]
Info
Channel: Gorka Games
Views: 8,367
Rating: undefined out of 5
Keywords: games, videojuegos, unreal engine, unreal engine 5, ue5 pickup health, tutorial, quixel, megascans, unreal engine health collectable tutorial ue5, ue5 collect health tutorial, ue5 increase health tutorial, how to make health pickup in unreal, unreal engine 5 how to increase health, simple health collectable, increase health tutorial in ue5, ue5.2 health increase system
Id: _p3rAlqevJ4
Channel Id: undefined
Length: 5min 34sec (334 seconds)
Published: Mon Jul 31 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.