Fall Damage - Unreal Engine 4 Tutorial
Vložit
- čas přidán 29. 06. 2024
- Hey guys, in today's video, I'm going to be showing you how to create fall damage in unreal engine 4. This system is very easy to customise for yourself, whether it is the height, speed, differing damage types or damage amount.
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:10 - Overview
00:55 - Tutorial
12:01 - Final Overview
12:18 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :) ___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10
I am searching some tutorial about how to do this and that. Then I found your channel. And you have upload soo many tutorials that I can add into my game this will help me a lot but not me it will help all boys/girls that are using your tutorial to make game or for studying
Thank you to making that beautiful CZcams channel and congratulation for holding 3k peoples.
And last I have to ask one question that if you are good in UE4 so why don't you make your own game
Thanks you, gentleman
Thank you so much man, so happy I could help you out as much as I have. I appreciate your feedback!
And I'm going to be making a game very soon, I'll probably be making devlog videos on it too, thanks again :)
This was a big help, thanks! I modified it by multiplying the damage by a float curve, depending on how fast the character is falling (instead of the thresholds and the branches).
I'm basically a newbie on Unreal Engine and I've always wanted to make a game of my own. After discovering how difficult programming was, I was about to drop the sponge, until I discovered your channel. Here I got and still getting so much information and stimulation I couldn't get anywhere else. What I'm trying to say is: thank you a thousand times for helping and inspiring all of us indie game makers.
your videos are so helpful and well organised thank you so much!! i really enjoy watching these
Congrats on 4K
Thank you so much Milan! Thanks for all the support too! :)
Happy 4k subscribers!!!
Thank you so much for being here on the journey with me! :)
wow very nice, thx for this awesome video. :)
Good this will help to all who are new
That's great to hear, thank you!
thanks, you're a life saver
Nice way to accomplish this, and well explained.
Thank you Steve, always happy to hear feedback!
Hi everyone,
If it's not working, try setting your Health and Damage variables as floats instead of integers. For some reason it wasn't working for me when they were integers. It is a pain going back and changing all of the Health/Damage Get/Set nodes, but it's not that big of a deal.
Btw this video is very good. Thank you Matt for it!!!! Very nice
Thanks for the help :)
No problem :)
Thank you, I was following other's youtuber 2d side scroller tutorial, and he didn't include fal ldamage so I found this tutorial, it doesn't work for me for now but probably it's my fault and i'll fix it (update: it works suuuper weirdly help)
I surely will see your other tutporials
For a frame of reference in unreal. A -2000 fall speed would be about jumping off a 50-foot tower.
Nice video it will me help alot :)
Thanks, that’s great to hear! :)
2:55 you can also use the "Absolute (Float)" node which actually does the same but it saves more space (idk if that node was available in UE4)
8:01 use "Delay until next tick" node
Yeh that is what i need
Great to hear it!
How did you even know that I was looking for something like this right now for my school project? :D Quite the coincidence! Also, I have a question how can I do this with a health bar?
bind health variable to the health progress bar,
Matt has a video on enemy health bar, kind of same process :)
Ha yep lol, glad I could help out at the right time though.
And Milan is correct, you can just link this to a widget, I can make a follow up tutorial if you like :)
@@MattAspland Thanks for the reply but I already managed to make it work myself somehow. I discovered your tutorials yesterday and they helped a lot in finishing up my project. Unfortunately not everything worked out as I wished them to be but this was my first time using ue 4 blueprints and I should have started working much earlier on this. Thanks a lot anyway! :D:D
@@Eren-cy6ln That's great to hear, glad you got your project finished. Each new project will be better than the last, all the best of luck with your future! :)
Wow so good a video
Thank you man!
could you maybe do a tutorial on fall damage thats linked to the health bar so when you take fall damage it takes away about 10 health
Awesome dude, really good tutorial, i had alot of issues trying to put this on ALS (because i'm a fucking noob in this) but finaly i did.
Probably no one gives a shit but if someone ask how just have to: go to your ALS Base character and copy "Parent OnMovementModelChanged" and the next one and
paste to your ALS Animan character Event graph and put it between the Event OnMovementModelChanged and the first Branch
do the conections same as in the Base char and make sure that New movement mode is conected to the equal falling, the rest is just as this boss shows us.
PD: i was trying to put the Hunger system too and just have to conect at the end of the event tick that is already doing some stuf and that it, that fix alot of issues in the mesh and the ragdoll, works fucking perfectly.
Really tnx alot man you make me the day :)
That's great to hear man, so glad you got it solved and working. Thank you for sharing it here too for others to see and use. Thank you so much for your kind words too, I hope you have a great day and I wish you all the best of luck with your future! :)
I love this setup! I used it on a character and it worked perfectly. But recently i redid the character and reset all of its coding. Now i cant seem to get mine working, every time i fall no matter what it only does like 5 points of health. Very much confused, if you could possibly help me id really appreciate it!
wow great can you make a tutorial on some like logic on how to make the player regenerate health if he isn't in combat I can't figure out how to detect if he isn't close to the enemies or like an amount of time since he last attacked or smth like this
so basically if he isn't in combat slowly regenerate all his health
Sounds like a great idea thank you, I'll add it to my list
how would you implement this if your game has glider system?
hello i have a rootmotion system and im new in unreal, i don't know how to do it but i want to keep my run/walk speed when im falling, why my isInAir stop my speed ?
what if we alreadyt used our OnMovementMode changed?
I don't know if anyone here will answer but I have a problem, I have a health counter that already changes during the fall, does anyone know how I can fix this? Good video by the way!
and it goes below 0
I have Fall Damge when i jump into the water, How can I prevent this?
Sorry I got lost, does someone know how a custom event keeps calling when is plug to a delay? Is the only part I didn't understand, I thought he would use a tick event.
Hey, you could use the Event Tick however it is less efficient. The custom event works by calling the event again at the end of the code until you don't need it anymore. What the delay does is it allows the code to finishing firing off before we call it again, therefore prevent an infinite loop, which would also give you a fatal error.
Again, Event Tick can be used, however you want to use it as minimal amount of times as possible, custom events are a lot more efficient.
I explain a little bit more about what custom events are in this video below.
czcams.com/video/68WVFKLQmEE/video.html
@@MattAspland oh thank you so much this was helpful!!!
@@MattAspland dude your basic nodes videos are amazing, people always explain exactly what it does but not how it could be use in an gameplay example. This is awesome!!!
@@rodroeq7956 Glad I could help, and thanks man. I appreciate that, again happy I could help out! :)
8:42
please add animation in the next video
Hey, what kind of animation would you want?
@@MattAspland falling animation and dieing when he hits ground,,,,,and can you do vaulting like getting up on something and climbing something with differnt heights
@@ak-gi3eu Okay, I have a video on a hard landing animation which will be what you are after. As for the falling, that would be in the animation blueprint, I'm going to do another more advanced video on that shortly. And I have vaulting already too.
Hard Landing: czcams.com/video/-__BWLT37uk/video.html
Animation Blueprint: czcams.com/video/1K-Hyu4Xn3g/video.html
Vaulting Part 1: czcams.com/video/h_Cr_azdsDE/video.html
@matt Im trying to make sfx when a character is dying with a command "below" , It works and plays the sound, however, it also plays the "damage take" sound at the same time, (2 sounds at the same time) is there a way I can make it so it only plays one sound at a time. > ibb.co/HVXkgbF
This seems overly complex. Why not simplify it by taking your speed travekled - your safe speed (650 in your exxample) and then do 1 point of damage for every x traveled? Let's say 1 point of damage for evey 10. So if you fell 700 units that would be 50 units more than your safe distance then that would mean 50 / 10 = 5 X 1 = 5 points of damage. Adjust to taste. You save a lot of branches that way.
How create GTA V ragdoll psichyck ?
Hey, which part specifically, the ragdoll from falling?
@@MattAspland
Yes
@@mirapakulinek Okay, I've got a ragdoll video here, let me know if it helps :)
czcams.com/video/8d_x8M9DDV8/video.html
@@MattAspland thank you
Sigh... this is waste of time. I double checked this. I don't think I'm able to finish my game on time. Doe this code work other characters?
I need download