How to Shoot a Projectile in Unreal Engine 5 - A Step by Step Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's up it's philli and let me show you the easy way how to shoot projectile in Unreal Engine 5 we will use the third person template for this first step is to create a projectile blueprint class of type actor right click create blueprint class and this needs to be actor because we are going to spawn it in the scene okay double click to open it and dock it up here next go add and add a sphere component to the projectile blueprint this will be the mesh for the projectile next step is to add a projectile movement component to the projectile blueprint this will allow the projectile to move select BP projectile add projectile movement component set the initial speed and max speed of the projectile movement component on the right side hit compile and save okay now we need to actually shoot the projectile open the third person character blueprint go viewport Tab and add Arrow component this will show us in which way the projectile is going to move it will be spawned in the pivot of the arrow component here at the start adjust the arrow as you wish and one tip make uh that this arrow is a little bit outside of the mesh to avoid with strange camera collisions and rename it something like projectile spawn location okay hit compile and now go to event graph right click and select a left Mouse button add a spawn actor from class node to the character blueprint set the class to the BP projectile blueprint this is the projecti blueprint that we created connect it and change Collision over right to be always spawn ignore Collision now we need to get the transform of the character spawn point and use it as the spawn position for the projectile to do that drag projectile spawn location drag the pin and select get World transform and connect it you can add comment to make it more clear hit compile save it and if you hit play we can spawn our projectile to change the size of the projector go to the projector blueprint select sphere and change scale over here that's how to shoot a projectile in Unreal Engine 5 I hope you found this tutorial helpful and informative thank you for watching goodbye
Info
Channel: EZ Unreal
Views: 3,301
Rating: undefined out of 5
Keywords: Unreal Engine 5, Game Development, Blueprint Tutorial, Projectile Shooting, Unreal Engine Tutorial, Game Design, Third-Person Template, Game Programming, UE5 Tutorial, Projectiles in UE5, Game Development Tips, unreal engine, unreal engine 5, ue5
Id: DPW4UJdyszU
Channel Id: undefined
Length: 3min 30sec (210 seconds)
Published: Wed Sep 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.