How To Throw A Rock At An Enemy To Stun Them | Pick Up Rocks - Unreal Engine 4 Tutorial

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

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to throw a rock, or any object, at an enemy AI and have it stun them. This means they will fall over, not move a set amount of time, and then get back up and continue with what they were doing. You can also pick up more rocks to throw.
Animations: drive.google.com/drive/folder...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:22 - Overview
01:08 - Creating The Animations
02:08 - Creating The Rock BP
04:18 - Creating The Stun
07:43 - Throwing The Rock
18:46 - Picking Up Rocks
23:44 - Final Overview
24:19 - 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

Пікірлер: 61
@sitraash
@sitraash 2 жыл бұрын
Guys, if ever you have a problem with the enemy not react on rock. It is necessary AT THE STONE COLLISION AND THE ENEMY COLLISION enable a check mark "Simulation Generates Hit Event".
@megtwin
@megtwin 2 жыл бұрын
Thanks so much, works great now!
@DivineHonor
@DivineHonor 2 жыл бұрын
That fixed my issue, thanks! Before I could stun/knockdown the AI once, and not after that. Now it works every time.
@Zireael_Daifuku
@Zireael_Daifuku 2 жыл бұрын
Incredible results for me, thanks !
@megtwin
@megtwin 2 жыл бұрын
This was so much fun, thanks!!
@davidedemurodominijanni9889
@davidedemurodominijanni9889 Жыл бұрын
A very useful tutorial I really hoped to find for one of my game concepts I'm working at. I just wonder if you could do a second chapter of this, to eventually fix any possible difference between UE4 and UE5 but, most importantly, to take advantage of the animations we got from assets where the actor reacts to the hit from different reactions, if an actor is hit from behind his body reaction is definitely different from the one happening being hit from the front or rather from the side. It can look easy to achieve but I believe it's actually a bit tricky instead. Thanks Matt, as always.
@GageAulik
@GageAulik 2 жыл бұрын
The way your BP is set up for stunning is really nice, You can even set it up to have AI stunning AI. Thank you!!!!
@tacticalsamurai8
@tacticalsamurai8 3 жыл бұрын
Hell yeah thank you!
@MattAspland
@MattAspland 3 жыл бұрын
No problem!
@boundlessunrealengine9467
@boundlessunrealengine9467 2 жыл бұрын
Great!
@officialrhythmicthoughts
@officialrhythmicthoughts 3 жыл бұрын
This will be very helpful for a faltering system I'm planning to implement into a game
@stevenwynn819
@stevenwynn819 3 жыл бұрын
What a great tutorial! I love the idea of characters running around and throwing rocks at each other.
@MattAspland
@MattAspland 3 жыл бұрын
Thank you Steve! That sounds like a really fun idea! :)
@randomgamer8405
@randomgamer8405 3 жыл бұрын
Great tutorial! my game is going AMAZING right now I just need help on spawning things, then when you touch it gets destroyed.
@MattAspland
@MattAspland 3 жыл бұрын
Thank you! That's great news, so happy for you! I have a video on player respawning, that might be of some help. It respawns upon the actor being destroyed. Respawn Tutorial: kzfaq.info/get/bejne/isd3eJaWnpnMfWw.html
@mateuszsieczka7989
@mateuszsieczka7989 3 жыл бұрын
Hey, that's cool! Although I have a idea for net tutorials - it'd be great if You made combat fighting system with AI - I think many people need it. Anyway waiting for next tutorial!
@MattAspland
@MattAspland 3 жыл бұрын
Hey, thanks! Great idea, I have a video on punching an AI, so a basic version of what you are after. That may help for the time-being. I can look into what you asked for too though :) Punching Tutorial: kzfaq.info/get/bejne/Z9CoeM-Hpp3LY5c.html
@mateuszsieczka7989
@mateuszsieczka7989 3 жыл бұрын
@@MattAspland Yeah, I think I watched this one. I'd really love to see fighting with cold steel or without weapon (just hands and kicks for example) with advanced AI. I think that'd be quite interesting for You to make, and helpful for us to watch :)
@MattAspland
@MattAspland 3 жыл бұрын
@@mateuszsieczka7989 Yeah okay, great idea thanks. I'll definitely add that to my list, great suggestion, I agree with you yeah :)
@SanneBerkhuizen
@SanneBerkhuizen 3 жыл бұрын
Maybe I'll make a "throw stuff at stuff" game for the kids this weekend.
@MattAspland
@MattAspland 3 жыл бұрын
Ah that sounds like great fun for you all! Enjoy it if you make it :)
@logandoejogando...7532
@logandoejogando...7532 3 жыл бұрын
@@MattAspland I can't move my box or stone forward, I did it step by step in 4.26
@MZONE3D
@MZONE3D 3 жыл бұрын
Nice one dude... how about throwing doing a tutorial on throwing a rock to create a distraction?
@MattAspland
@MattAspland 3 жыл бұрын
Thank you man, and sounds like a great idea! I can definitely add it to my list :)
@megtwin
@megtwin 2 жыл бұрын
How can we keep the AI from turning on the ground between anims?
@annugamer24
@annugamer24 Ай бұрын
Hey I want this same concept for my game but i want to make the ai TO STUN WHEN shooted by sun bullets from pistol How to do it ? BTW AWSOME TUTORIAL🤗🤗
@KGCofficial7
@KGCofficial7 3 жыл бұрын
Also can you do a video on throwing rock to damage an ai with a healthbar
@slidecode6318
@slidecode6318 2 жыл бұрын
It doesn't work when you go backwards for some reason but these are great videos keep it up
@it_rooster
@it_rooster 3 жыл бұрын
Excellent tutorial! I really appreciate it. If I wanted to change the angle which the projectile flies out, lets say I want it to spawn at the spawn location on the pawn and fly towards a crosshair in the middle of the viewport, how would you recommend doing this? The thing I'm finding difficult is because the crosshair is a UI element I can't use it as a vector in space, the viewport isn't pointing in front of the player if that makes sense. Do you have any suggestions? Thank You!
@MattAspland
@MattAspland 3 жыл бұрын
Hey, thank you! What you could do is get the size of the window, and then get the "Size X" and "Size Y". Then the centre for this would be "Size X / 2" and Size Y / 2". You can get the size of the window using "Get Viewport Size". Hope this helps :)
@stefanleroux8750
@stefanleroux8750 3 жыл бұрын
Hi Sir. Is there maybe a chance for you to make a tutorial on ledge climbing? I followed Ryan Laley's tutorial. Very good tut but there are a lot that goes wrong that he do not seem to want to make right like when you climp , the character can not jump again and when you are near any ledge the character grabs even lower ledges and drag you under the floor and the character sometimes rols 45 degrees etc. The tutorial is great for normal flat obstacle's like cubes but not for rocks and other services. Would be so greatfull. And lastly are you going to let people donate to you through Patrion. This is the best way for me to donate to you for your great tutorials. Please consider starting Patrion for you KZfaq page. I think it is only fair. Have a great day.
@MattAspland
@MattAspland 3 жыл бұрын
Hi Stefan, I think a ledge climbing tutorial would be great. Definitely something I'll want to look into for the future, and I'll make sure to not leave in any bugs. Also, thank you so much for wanting to donate! You can currently either donate via my ko-fi, or straight to my PayPal. I can look at a Patreon too if that would be easier :) Links are below, have a great day too! Ko-Fi: ko-fi.com/mattaspland PayPal: Send to the email 'matthew.aspland@gmail.com'
@pseudonym108
@pseudonym108 Жыл бұрын
Two things. First, let's say i just want to have the rock deleted after it hits a wall or floor; how would I do that? Second, the projectile doesn't adjust on the characters Y axis. i.e There is no way to throw the projectile straight up. I'm sure there's a simple way with the blueprints you went over in this video but, I've tried everything that I thought would work. I'm sure someone is smart enough out there to answer this for me. Oh and as a bonus question; is there a way to also rotate the projectile on the Y once thrown?
@foofuhh
@foofuhh 3 жыл бұрын
Hi, if I want to pick up more than 1 rock, it unable pick the 2nd rock it only able to pick the latest created. So what I can do to can pick more than 2?
@MattAspland
@MattAspland 3 жыл бұрын
In the blueprint where we have our "Interact" action mapping, if you select this and in the top right un-tick "Consume Input", does this help?
@foofuhh
@foofuhh 3 жыл бұрын
@@MattAspland Yey, that work, thank so much
@MattAspland
@MattAspland 3 жыл бұрын
@@foofuhh That's great to hear, no worries :)
@cheemayt1530
@cheemayt1530 Жыл бұрын
Thanks, But I have a issue - When I throw rock and it goes to the ground than it just keeps on going it doesn't stop like yours. Does any one has a solution? Thank you :)
@TopWorld-bl5os
@TopWorld-bl5os 10 ай бұрын
good tuturial but my rock dosent move and freeze in sky what can i do ?
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
A BuG it is where i take the rock then throw and i can throw it multiple times
@fleurbird
@fleurbird 3 жыл бұрын
I always thought g was for Gooi... Which is dutch for throw.
@MattAspland
@MattAspland 3 жыл бұрын
Oh that makes sense, I much prefer that one. I might use it from now on :)
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
cool but when already stun the first animation its become idle animation and then play the second animation why
@MattAspland
@MattAspland 3 жыл бұрын
Hey, do you mean that the stun animation ends and becomes idle?
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
stunned animation and then idle then getting up animation
@MattAspland
@MattAspland 3 жыл бұрын
@@elbozomemeoriginals7296 Right okay, inside of the animation montage, did you make sure to un-tick "Enable Auto Blend Out"?
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
wait that exists? okay i straight untick that
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
now how to make the enemy stunned and stop rotating
@juancharistheashawu
@juancharistheashawu 3 жыл бұрын
Haha imagine when there are some AIs and when you hit one of them with the rock, it starts to play animation (like angry anim) and come overs closest ai (like to attacks it).
@TNTMEKKI
@TNTMEKKI 3 жыл бұрын
hi my frinde can you give me this animation ( Landing and Rolling ) in your link drive.google
@MattAspland
@MattAspland 3 жыл бұрын
Hey, I should have a link to the animation in the description of the video
@TNTMEKKI
@TNTMEKKI 3 жыл бұрын
@@MattAspland mixamo not work for me just up your animation in google link
@MattAspland
@MattAspland 3 жыл бұрын
​@@TNTMEKKI Okay no worries, I've just uploaded it now. drive.google.com/drive/folders/1Z_ZXP_3DPepZ3rWUBHr8hsF41TaWkIYi?usp=sharing
@elbozomemeoriginals7296
@elbozomemeoriginals7296 3 жыл бұрын
NoW MaKE a ToWEr DefENse TuTorIAl (Or YOu CaNT DO ThAt)
How To Create Bullet Holes - Unreal Engine 4 Tutorial
7:43
Matt Aspland
Рет қаралды 24 М.
How To Hide In A Locker - Unreal Engine 4 Tutorial
26:43
Matt Aspland
Рет қаралды 29 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 10 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 96 МЛН
I Bought a $5000 PC in a Random Asian Tech Mall
22:12
Linus Tech Tips
Рет қаралды 6 МЛН
Pickup and drop system with physics on UE5
17:17
LocoDev
Рет қаралды 34 М.
Unreal Engine 5 Tutorial -  Grenade Aiming
25:26
Ryan Laley
Рет қаралды 7 М.
Easily Make Ai Animals That Chase And Flee In Unreal Engine
16:20
Elusive Panda
Рет қаралды 15 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27