Weapon Hits | Unreal Engine 5 First Person Shooter (FPS) Beginner Tutorial | #4

  Рет қаралды 26,336

Virtus Learning Hub

Virtus Learning Hub

Күн бұрын

In this episode, I'll be covering how to setup weapon hits whenever the player shoots their weapon using line tracing.
► View the full first person shooter course today on our website: www.virtushub.com/p/fps and receive 50% off the purchase price.
New UE5 FPS video every week!
0:00 - Intro
0:30 - Part 1
4:48 - Part 2
5:56 - Part 3
9:15 - Part 4
12:08 - Outro
♥ Don't forget you can support the channel on Patreon for more content just like this! / virtushub
♥ Join the Virtus Discord: / discord
Virtus Creative Hub // Media
● Facebook Page - / virtushub
● Twitter Page - / virtushub
● Website - www.virtushub.com

Пікірлер: 83
@alfonseraffa2308
@alfonseraffa2308 3 ай бұрын
just a note that in version 5.3.2 you have to drag out a Break Hit from the Out Hit from your Line Trace node to get all of the other options.
@camerondegio8916
@camerondegio8916 Ай бұрын
you can also just split the structure of that and it will get you all the info
@ilissupport268
@ilissupport268 Жыл бұрын
BRO I JUST LOVE YOUR CONTENT JUST KEEP GOING IN THIS SERIE ( the same serie in ue 4 problem is the gun shoting fire )
@carlosrivadulla8903
@carlosrivadulla8903 Жыл бұрын
this channel so active lately and im loving it
@VirtusEdu
@VirtusEdu Жыл бұрын
I'm glad to hear that you're enjoying the content!
@zolt8490
@zolt8490 Жыл бұрын
Virtus Creative why does it cost $43.74 to continue watching it's a bit much. Great video as always tho!
@2009142
@2009142 Жыл бұрын
@@zolt8490 They'll eventually come out to youtube I think, but don't forget it takes a lot of time to create content and resources (like money) to make more material :)
@tarik2663
@tarik2663 Жыл бұрын
9:54 i do not have that many options on line trace by channel
@Lixianisfresh
@Lixianisfresh Жыл бұрын
same
@crimsondespair_9505
@crimsondespair_9505 Жыл бұрын
@@Lixianisfresh Right click on Out Hit and click on Split Struct By Pin
@robloxian2.O
@robloxian2.O Жыл бұрын
@@crimsondespair_9505 Life Saver
@8ninety6
@8ninety6 Жыл бұрын
@@crimsondespair_9505 thanks g
@swordstar5981
@swordstar5981 Жыл бұрын
@@crimsondespair_9505 Thank u so much. i really appreciate it.
@tan_23-gamedeveloper96
@tan_23-gamedeveloper96 Жыл бұрын
If you can add multiplayer to this series it will be great!
@EL_N0IR_2201
@EL_N0IR_2201 8 ай бұрын
looking too buy you're course is the course good with unreal engine 5 2 1?
@elgrekko9634
@elgrekko9634 Жыл бұрын
Bro, I love your style in your tuto, very clean and pro, but do you have any demo about your FPS or a video link to see the result, I mean a real gameplay, not a trailer ! best regards virtus !
@saliherturk9440
@saliherturk9440 Жыл бұрын
hello, you added channel follow-ups in 5.13 seconds, how do I add them?
@zipkiev
@zipkiev Жыл бұрын
Is good to say in future about impuls direction, becouse now it go in all axes... so box on video moves strange
@didblocky1018
@didblocky1018 Жыл бұрын
I don't have Out Hit Components and others?
@camerondegio8916
@camerondegio8916 Ай бұрын
if you are having problem with the shooting not working like its meant to just add a multiply node and connect the the fist point with another multiply node which in this video is 1500 and then add it to impulse so it work like form any direction you are shooting it will the object will follow that direction
@guyemu1211
@guyemu1211 Ай бұрын
could you reword this to be more clear?
@AllCreativeGaming
@AllCreativeGaming 7 ай бұрын
@06:36 your line trace by channel box looks completely different to mine. I only have Out Hit and Return Value on the side. I have followed every step thus far but that alludes me. Is there some blueprinting that you may have missed that will access this? This is again shown in 09:51.
@ThePieman150
@ThePieman150 7 ай бұрын
right click out hit and do split struct pin
@HungryHippo844
@HungryHippo844 6 ай бұрын
thanks bro :D @@ThePieman150
@rage9444
@rage9444 3 ай бұрын
ty man u saved my life xD @@ThePieman150
@caspiansk8742
@caspiansk8742 3 ай бұрын
Thanks so much!!! @@ThePieman150
@alexandrawilliams4627
@alexandrawilliams4627 5 ай бұрын
I did this method but I'm trying to setup multiplayer and on the client's side, the first shot hits but all the others are following the same path no matter how I rotate the camera. Is there a way to fix this?
@upcomingvillain
@upcomingvillain 11 ай бұрын
Great tutorial! Just one question when you shoot the cubes at the end they seem to be moving to the side instead of the back. What is causing this and how would you make it accurate?
@MichaelRRyan
@MichaelRRyan 9 ай бұрын
He applies a fixed impulse on impact, meaning it will always move in the same direction. To make it more realistic you'd want the impact to be the same direction as the ray that we cast. An easy way to do this is to take the output from the Get Forward Vector used to calculate the ray direction, multiply it by a float value which is the strength of your impulse, and feed that into the impulse pin instead of the fixed vector.
@renexthegod4538
@renexthegod4538 4 ай бұрын
just set X to -500 in the add impulse, that fixed it for me
@Refref1990
@Refref1990 9 ай бұрын
Hi, i have this error for some reason, i checked the code and it's correct, i don't know why i should put the wall as movable, did you have this error too? Mobility of /Game/FPSAssets/FirstPersonBP/Maps/UEDPIE_0_FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel.Wall1_17 : StaticMeshComponent0 has to be 'Movable' if you'd like to AddImpulseAtLocation.
@MichaelRRyan
@MichaelRRyan 9 ай бұрын
It's just a warning, it shouldn't cause a crash. I have the same and it's just triggered whenever the ray hits the wall instead of a cube.
@Refref1990
@Refref1990 9 ай бұрын
@@MichaelRRyan yes indeed, but i fixed put an if to the return value and then a filter for the physics, in this way only the mesh with collision can be pushed away.
@MichaelRRyan
@MichaelRRyan 9 ай бұрын
@@Refref1990 Okay cool, I did something similar checking if the mobility of the actor is set to moveable
@Refref1990
@Refref1990 9 ай бұрын
@@MichaelRRyan Yes it's similar, the important thing it's the results xD
@MichaelRRyan
@MichaelRRyan 9 ай бұрын
@@Refref1990 Very true indeed
@gh0st1ng95
@gh0st1ng95 11 ай бұрын
my line trace by channel doesn't have all of your input why pls?
@erendemirtas3906
@erendemirtas3906 3 ай бұрын
The impulse applied must be towards the direction of the bullet
@GrekkoGaming
@GrekkoGaming 6 ай бұрын
I don't have any recoil like you bro when i shooting with the M4A ?.. any solution
@OFFICIAL3LAZE
@OFFICIAL3LAZE 3 ай бұрын
Loop the animation
@regbagshaw423
@regbagshaw423 Жыл бұрын
Why is it that errors come up for the add impulse at location? Is that something that will be fixed in next episode?
@ahmdshbz2267
@ahmdshbz2267 Жыл бұрын
I am getting the same error
@2009142
@2009142 Жыл бұрын
What error are you getting?
@ahmdshbz2267
@ahmdshbz2267 Жыл бұрын
@@2009142 Blueprint Runtime Error: "Accessed None trying to read property CallFunc_BreakHitResult_HitComponent"
@yairoren5226
@yairoren5226 Жыл бұрын
After a little bit of research I discovered that it happens when the line doesn't hit anything. Don't know how to fix it though...
@crimsondespair_9505
@crimsondespair_9505 Жыл бұрын
To get rid of this error, add a node from the Line Trace Top White Output (the output should say Exec when you hover over it) to a Branch node. For the Condition of the Branch node, attach the Return Value from Line Trace. Now, break the link from Line Trace to Add Impulse at Location and then add a link from True of Branch node to Add Impulse At Location
@ahmdshbz2267
@ahmdshbz2267 Жыл бұрын
"Line Trace by Channel" looks different in my FireWeapon function that yours. Am I missing something here?
@2009142
@2009142 Жыл бұрын
How does it look different?
@ahmdshbz2267
@ahmdshbz2267 Жыл бұрын
@@2009142 I had to add _Break Hit Result_ from _Line Trace By Channel_
@2009142
@2009142 Жыл бұрын
@@ahmdshbz2267 oh yea that’s fine
@2009142
@2009142 Жыл бұрын
@anime x just break the hit
@DelLunaIU
@DelLunaIU Жыл бұрын
@anime x its a new update, you can just drag out "out hit" attach to "Break Hit result" you'll get all the options then
@X45Saucr
@X45Saucr 5 ай бұрын
how do i make the gun automatic??????
@ItsGTZbro
@ItsGTZbro 8 ай бұрын
why is it at the line trace by channel all those options are not coming up for me?
@caspiansk8742
@caspiansk8742 3 ай бұрын
i have the same, did you find a solution?
@caspiansk8742
@caspiansk8742 3 ай бұрын
oh wait you have to right click out hit and click split struct pin
@minimaniacjr226
@minimaniacjr226 Жыл бұрын
when i shoot a box it only goes in one direction. does anyone have a fix to this
@jakobzilinski6273
@jakobzilinski6273 Жыл бұрын
Take the out put from the Addition blueprint used to find the line trace end, and plug it into the impulse input. You may have to add another addition blueprint in between if you want to change the strength.
@fo0lonxbox360
@fo0lonxbox360 10 ай бұрын
10:04 I dont have the "add impulse at location" I have 3 different "add impulse at location" but they all come with a target on them and if I delete the target the "add impulse at location" gets deleted too. Help Please!
@404_Founder
@404_Founder 10 ай бұрын
Try right-clicking the Out Hit selector and choosing "Split Struct Pin".
@ItsGTZbro
@ItsGTZbro 8 ай бұрын
I HAD THE SAME PROBLEM AS THE GUY THANK YOU SO MUCCHHHH@@404_Founder
@4Lop532
@4Lop532 Жыл бұрын
it doesnt appear a lot of options on physics help
@fo0lonxbox360
@fo0lonxbox360 10 ай бұрын
Same here
@gamermanmitchell
@gamermanmitchell 11 ай бұрын
how can i make the gun automatic?
@ChainsFRShorts266
@ChainsFRShorts266 Ай бұрын
on the fire animation make sure to click Loop or smt like that
@OneShotImFunny
@OneShotImFunny Жыл бұрын
multi box trace for objects looks different for me
@4Lop532
@4Lop532 Жыл бұрын
its multiply
@madeeasy7148
@madeeasy7148 7 ай бұрын
That is a really poor way to implement impulse on an object, if you shoot a cube on the front it flys backwards.
@tarik2663
@tarik2663 Жыл бұрын
plz help its driving me crazy
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 10 МЛН
Glow Stick Secret (part 2) 😱 #shorts
00:33
Mr DegrEE
Рет қаралды 34 МЛН
Did you find it?! 🤔✨✍️ #funnyart
00:11
Artistomg
Рет қаралды 20 МЛН
3 Devs Make An FPS - Godot vs Unity vs Unreal || GameDev Battles
12:39
How I Made My Own First-person Shooter Game In Unreal Engine.
8:07
25 Tips and Tricks you (probably) don't know about Unreal Engine 5
16:06
Unreal University
Рет қаралды 50 М.
Multiplayer FPS Animations The Lazy (But Better?) Way
3:39
How I made my own FPS Game - (Without Programming)
6:29
jonei
Рет қаралды 109 М.
5 Steps To Gorgeous Game Art
10:30
Thomas Brush
Рет қаралды 230 М.
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 10 МЛН