Making Overwatch Junkrat's Projectile | Unreal Engine Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome back to another Unreal Engine tutorial today we are gonna be trying to recreate junkrat's projectile so uh all right first things first we can actually use some of the existing uh blueprints in the first person template blueprint that unreal provides for us so let's head over to the first person blueprint folder and let's open up this first person projectile blueprint so if you look in here a lot of the functionality is already built into this template blueprint so what we're going to do is we're just going to duplicate this and we're going to name it junk rat projectile hit enter now we're going to want to open this up and we're just going to want to tweak some things in here so first things first we probably want to make the projector look different right so I actually have a particle pack in here that I'm going to use uh you guys could use your own particles or make your own particles so here let's open up some particles and let's go with projectiles and I want to use this one yeah this is what I'm going to use all right delete get the name copy paste and I'm just gonna delete the static mesh because I'm actually going to use a particle for my projectile so head over here paste get my particle in there it's looking a little big let's make it smaller 0.5 0.3 that looks about maybe a little bigger 0.45 that looks good to me so let's see how this works right away so let's head over here open up the first person character blueprint and this is all default if it looks a little different from yours it's because I've just deleted some of this uh useless VR code that we don't need right now so I've deleted it already but I haven't added anything here yet so go ahead and copy how mine looks if you want to but if not it really doesn't matter you don't have to do this uh so over here in spawn active first person projectile let's change this projectile over to our junkrat projectile hit yes compile save and see how this looks right off the bat so already we get this nice looking projectile right so it looks a little bouncy to me we could tweak that a little bit let's head over back to our junkrat projectile click on this projectile tab and here we can control everything so bounciness I'll lower this a little bit to 0.4 hit compile hit save uh gravity scale look just about right to me let's hit play and see how this looks all right beautiful already looking like chunk rats uh attack all right so here I've set up a quick little dummy blueprint just so we could test damage dealing uh so you can see how the damage actually works so if you take a look at this dummy he has a health bar and we're gonna try to damage him with junkrat's projectile so head over back to your junkrat junkrat projectile and here I'm just going to add another sphere collision and I'm going to call this AOE right because this is what I'm going to use uh to check what units are inside the damage Zone when the projectile explodes so I'm going to make this damage Zone pretty large let's make it 200 uh then I'm going to set the hidden in game so that we can see it in game let's take a look oh it's a little hard to see but you can see that like circle around the projectile right yeah it's a little hard to see but I hope you guys can see that red circle around so that's basically going to be my damage Zone when the projectile explodes so all right let's head over here event hit and what we could do it first is we could do an on destroyed event or yeah search up destroyed and event destroyed here we go so first thing I want to do is I want to spawn an emitter at location all right so this will be the explosion look so let's go back to our particle pack over here and let's pick an explosion particle let's go with hits that looks just fine to me all right so get the name copy paste head over to junkrat projectile and paste the projectile in there so our location is going to be get active location because we just want to spawn this explosion wherever our projectile is when it explodes and then the scale we might want this to be a bit larger right so we can go 333 let's see how that looks um yeah let's see how this looks right now so I shoot it at the floor it bounces in there boom you get that little explosion when the projectile dies so I think the we can increase the AOE a little bit actually we can make this 300 I think that'll be fine so let's take a look there we go so we can fire these like junkrat up in the sky and you get your little explosion all right so let's make this projectile actually deal some damage to a dummy over here I'm going to head back over to our junkrat projectile move this a little lower click on this AOE and I'm going to do a I'm going to do a yes I'm gonna do an on destroyed we're going to spawn that projectile we're only gonna we're gonna do this oh yeah okay so what we're going to do is we're going to drag out this AOE and we're going to drag out from this pin and say get overlapping actors so I'm going to click on this AOE sphere collision and I'm going to scroll down here and actually change uh some of this Collision presets so I'm going to go to custom I'm going to click ignore all and then I'm simply gonna only overlap World Dynamic compile and Save we're going to drag off from this array pin and do a four each Loop plug this in here and what we're going to want to do is we're going to want to apply damage this is a built-in node to Unreal that you could use it's really simple all you do is type in apply damage plug in the actor and then set how much damage you want this to do so let's make it do 10 damage or we can make it do 15 let's do 15. hit compile and Save um and I'm actually going to do a print string over here just so we get more feedback that it's actually working dealt damage hit compile and Save and let's see if this works hit play there's my dummy over there I'm gonna aim at the floor try to get the projectile to land on him all right way off let's Bounce It Off the Wall over there oh that was closer but it's still a little off here we go boom you see dealt damage to this dummy over here I'm actually gonna lower the the bouncing us just a little bit so that we can get this uh aim right so let's head over to bounciness let's go point two hit compile play there we go there we go all right so we can see that our damage is working anything in that Circle will get damaged and you see how the gravity affects the projectile if you shoot it way up it comes down just like junkrats uh projectile explodes after a set duration bounces off walls you can try to get a trick shot in so yeah this is uh how you can make junkrats projectile in Unreal Engine if you guys enjoyed the video If you learned from this video please give it a thumbs up hit that subscribe button because you're not you do not want to miss uh some upcoming content you're going to learn a lot it's going to be awesome and if you want to support us please head over to our Google Play Store play some of our games and leave some ratings yeah thanks see you guys next time
Info
Channel: Studio Bit Byte Games
Views: 646
Rating: undefined out of 5
Keywords:
Id: Bx86gWMu7kw
Channel Id: undefined
Length: 10min 3sec (603 seconds)
Published: Wed Dec 14 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.