How To Freeze Projectiles | Unreal Engine Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right to freeze your projectiles as you can see here it is real simple to do so let's get started so to begin with open up your firstperson character this is how we're going to actually control the freezing of the projectiles and here over here on your event dispatchers you want to click this add a new event I'm going to call this notive freeze projectile just like that compile and save so that we can drag it out and use it and for the of the tutorial I'm just going to use this on the one key so I'm going to go keyboard one just like that now you could call this on like say the character gets hit or something or whatever mechanic you would like but now I'm just going to drag this out and I'm going to select call and then just simply hook this up to press and now that is really all we have to do inside our character so you can compile and save this and now we can close out of this and open up the first person projectile inside of here we want to bind to that dispatcher we created so right click and do begin play like that and to bind to it we have to cast to the character so drag out this and do cast to first person character right here the object you can just do get player character then off of of our cast right here you want to search for bind event on and scroll up until you find the event dispatcher we created so it's right here under default bind event to Nota freeze projectile right there and as you can see the little event pin comes out so just drag off of the event and do add custom event like that call this event freeze projectile or something along those lines and this is where you want to drag out your projectile movement right here drag off of your projectile movement and search for set velocity in local space right here and you want all these values to be zero because obviously we do not want the projectile to be moving so now there is one more optional thing you may or may not have to do if your projectile has gravity on it then if we just Stomp the velocity it will still just fall to the ground so you want to drag off of this and do set gravity scale right here and just set that to zero as well if your projectile doesn't have gravity then you just don't even have to worry about this step and so basically what this bind right here is doing is it's just listening for the event dispatcher to be called basically so whenever we press the one key over here in the projectile it will execute this so then just simply compile and save and we can test it out all right so back in the viewport if we walk over here pick up the rifle and we can shoot normally and as you can see the projectiles fly around but if we shoot a little bit and then we press one as you can see the projectiles freeze in the air now you can see that they're disappearing that's just unreal engines default setup because although they are freezing they will still disappear but yeah that's a simple way you can freeze projectiles and Unreal Engine if you enjoyed or found it useful leave a like subscribe for more and I will see you in the next one bye-bye
Info
Channel: The Average Dev
Views: 195
Rating: undefined out of 5
Keywords: unreal engine, ue5, ue4, unreal engine tutorial, ue5 tutorial, unreal engine how to freeze projectiles, how to freeze projectiles in unreal engine, unreal engine freeze projectiles tutorial, unreal engine block projectiles, how to stop projectiles unreal engine, unreal engine stop projectiles tutorial, stop projectile ue5, freeze projectile ue5, freeze projectiles unreal engine, unreal engine projectiles freeze tutorial, how to stop projectiles in unreal engine, ue5 projectiles
Id: pKQ_x5rC4Ds
Channel Id: undefined
Length: 3min 36sec (216 seconds)
Published: Sat May 18 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.