Тёмный

Unreal Engine 5 Tutorial - How to make Shotgun Line Trace! 

Ali107
Подписаться 681
Просмотров 11 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@perochialjoe
@perochialjoe Год назад
This is a great method that allows for making shotgun spread and recoil spread all in the same system. Great tutorial, thanks a lot!
@MaxCaulfield-sw6in
@MaxCaulfield-sw6in 8 месяцев назад
BEST shotgun course!thx
@dashingmlg601
@dashingmlg601 7 месяцев назад
this helped me make a shotgun but i am having a huge headache trying to figure out to print the damage of the shotgun so that i can use it for later because using the event any damage command only prints the damage of the first line trace that hits the actor and there is no way to combine the damage using basic arithmetic as then every bullet fired or that hits any object will be included in the calculation of the shotguns damage making it useless and there is no other function that i know of that will only report damage from hit actors that can be combined later
@Ali107
@Ali107 7 месяцев назад
So I assume you want to combine all the individual damage into one, right? To do that, you need to have a float variable that stores the damage per line trace. Then make another variable Int, that will add 1 into it every time a line trace hits your target. On Completed section of the loop, multiply the Int variable with individual line trace damage variable. Then save that multiplication in another variable and reset the int variable counter to 0. The saved multiplication value is how much damage is dealt. I haven't tested it this method, but it should work.
@jankystreams3337
@jankystreams3337 Год назад
Thanks man, very helpful!
@brianworden7022
@brianworden7022 Месяц назад
Thankyou
@kids24359
@kids24359 Месяц назад
nice bro . i jave sugest for you : make resault of video in begin of video that the propla can see what the fulle resault in this tuto . keep it cool bro love you
@Phoenix_VR
@Phoenix_VR 7 месяцев назад
بارك الله فيك
@zarigueyayoutuber9894
@zarigueyayoutuber9894 Месяц назад
I love u
@daboshi
@daboshi Год назад
I seem to have Bp_Pickup_Rifle instead. How do I get bp_rifle? Btw I am using 5.1
@Ali107
@Ali107 Год назад
It should come with the rifle if you created the project in unreal engine 5. The rifle blueprint will not show up if you made the project in unreal engine 4.
@daboshi
@daboshi Год назад
@@Ali107 I made it in 5.1
@Ali107
@Ali107 Год назад
@@daboshi i think the bp pickup rifle is the same thing, try opening that and see if the blueprint is the same. That's how I opened bp_Rifle 0:33
@BlackJack-lc2xx
@BlackJack-lc2xx 5 месяцев назад
@@Ali107 the blueprint is completely different and i cant do the tutorial :(
@blackledgion
@blackledgion 5 месяцев назад
@@BlackJack-lc2xx You can find the same blueprint in BP_Weapon_Component
@MilkSoup0
@MilkSoup0 Год назад
this is very well made, good job
@yuancui4305
@yuancui4305 Год назад
Hey Thanks a lot for the video! I'm able to successfully set up the linetrace. But there's a question - when applying damage to my enemies, some only apply the damage amount of a single linetrace, I find it very confusing and can't figure it out. Do you have any idea what could be causing it?
@Ali107
@Ali107 Год назад
Glad to help! Where did you exactly place the damage part of the blueprint? It should be right after the line trace.
@yuancui4305
@yuancui4305 Год назад
@@Ali107 Yes I did that, it seems the engine sometimes have problems on tracking multiple damage values that happen at the same moment or high rate of fire. The damage worked on some of the enemies and some don't. I realized that the enemies are based on default capsule component will only receive 1 damage value. I'm not sure if this is related but this is what I found so far... thanks for replying!
@Ali107
@Ali107 Год назад
@@yuancui4305 What method are you using to lower HP? I usually damage HP by subtracting health by the amount of damage per line trace.
@yuancui4305
@yuancui4305 Год назад
@@Ali107 I used apply damage node right after each linetrace, since I had many enemy types in my game, I usually add a tag to things instead of doing the logic one by one.
@Ali107
@Ali107 Год назад
@@yuancui4305 Hmm, I am in-experienced in using the "damage" node. I always have variables that store health that I subtract through a function. You could instead increase the damage, but that won't make the shotgun damage properly.
@IRONFRIDGE
@IRONFRIDGE Год назад
thanks!
Далее
Line Trace Tutorial - Unreal Engine 5 (FPS)
7:31
Просмотров 30 тыс.
Катаю тележки  🛒
08:48
Просмотров 225 тыс.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 763 тыс.
Inside Out 2: BABY JOY VS SHIN SONIC 4
00:16
Просмотров 2,7 млн
When Gamers Turn Into 5-Star Voice Actors!
11:57
Просмотров 1,7 млн
SHOTGUN BULLET SPREAD in Unreal Engine
10:13
Просмотров 12 тыс.
How I Remade MW2 with Unreal Engine 5
12:37
Просмотров 3,1 млн
The complete and utter collapse of Ubisoft
31:41
Просмотров 1,3 млн
I took the #1 Tech Exam and it was BRUTAL
18:28
Просмотров 1,2 млн
I solved Unreal Engine's Package Size Problem...
14:35
Катаю тележки  🛒
08:48
Просмотров 225 тыс.