Smart Enemy AI | (Part 16: Spinning Melee Attack) | Tutorial in Unreal Engine 5 (UE5)

  Рет қаралды 6,080

Ali Elzoheiry

Ali Elzoheiry

Күн бұрын

Learning Goals:
1 - Customizing animations using montages
2 - Using Timelines to do actions over time
3 - Using AOE damage (from previous tutorial. Link below)
4 - Blending animations and montages for smoother hit response
To download the full project files from all my videos and use any assets I create in your own games for free, then join my Patreon. Also I would be forever thankful to my early adopters
/ alizoh
Join my Discord server to chat and mingle with the community
/ discord
Link to the full "Smart Enemy AI" Series:
• Smart Enemy AI Tutoria...
Link to the "AOE" tutorial:
• How to do AOE damage a...
Link to the "Damage System" tutorial:
• How to Build a Combat ...
Checkout my other tutorials on my channel:
/ @alielzoheiry
Chapters:
00:00 Outcome of This Part
00:29 Animation/Montage Setup
06:37 Adding The Attack Function
08:05 Spinning Functionality
14:10 Using The Attack In The Behavior Tree
16:28 Chasing The Player When Spinning
20:24 Polishing The Spinning Functionality
26:37 Adding AOE Damage To The Spin
34:46 Modifying Player Hit Response (with animation blending)
38:11 Modifying The Behavior Tree With 3 Attacks
Assets used:
Spinning Particle Effect www.unrealengine.com/marketpl...
Animation "Sword and shield low attack" (from Mixamo) www.mixamo.com/#/?page=1&quer...
About me:
I've been learning game development for a few years now, I do have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming, software engineering and education is the best way to spend my time.
I am currently working on this 3rd person action adventure game as a hobby, but I am also trying to build a community, thus I am creating KZbin tutorials to find others who are interested in game development and design.
If you are interested in learning more or if you are interested in working together, please let me know in the comments.
#unrealengine #unrealengine5 #ue5 #gamedev #smart #enemy #combat #AI #blueprint #tutorial #behavior #tree #behaviortree #melee #spinning #sword #attack

Пікірлер: 61
@estepup
@estepup 5 ай бұрын
In case anyone missed an important detail (like I did), if your first test rotation at 16:05 rotates the enemy around an open space instead of an in-place pivot, make sure "Force root lock" is checked in the spin animation.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
Hey Estepup, thank you for this addition, indeed I migrated this animation from another project which already had root lock checked, so I forgot to mention that here. Thanks for letting me know
@estepup
@estepup 5 ай бұрын
Glad I could help. Love the videos.@@AliElZoheiry
@gundren
@gundren 3 ай бұрын
I have been following this series for a while now. And I have to say that one of the best things you do is direct us to earlier videos if we want a refresher. As someone completely new to UE5 this really helps when it comes to learning! Keep up the good work
@AliElZoheiry
@AliElZoheiry 3 ай бұрын
Hey, thanks for the positive feedback! I'm glad you find the references to earlier videos helpful, I do indeed try to put effort to make sure all the videos connect to each other so that someone starting from the middle isn't completely lost
@ADuarte-bq6uu
@ADuarte-bq6uu 4 ай бұрын
In case anyone's player still doesn't allow them to move while being hit, make sure the hit reaction animation's root motion has "Force Root Lock" checked instead of "EnableRootMotion" It worked for me
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
Hey, thanks for sharing the tip! I'm glad to hear it worked for you. Cheers!
@Xsabino1
@Xsabino1 7 ай бұрын
This is without a doubt one of the best Unreal engine channels we have here on KZbin. Thank you very much for being that person.
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Thank you Clark for your ongoing support 🙏 I'm always happy reading your comments, and I hope my tutorials continue to live up to that standard
@patricktoussaint6038
@patricktoussaint6038 4 ай бұрын
great work! so good to see such quality tutorials.
@AliElZoheiry
@AliElZoheiry 4 ай бұрын
Thank you ☺️🙏
@Shizuma450
@Shizuma450 7 ай бұрын
Thank you for this great video Ali Elzoheiry! You really spoil us! Like the previous videos, a real pleasure to follow! (at 20:40 I thought we were on Diablo 3, like the barbarian in Trombe Whirlwind specialization :P)
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
And thanks to you too as always Shizuma 😊🙏 Hahahah indeed a buggy version of Diablo then 😂
@JoMarcos28
@JoMarcos28 7 ай бұрын
Awesome!! This series is incredible. Next the enemy, will be the axe-throwing squire? consistent idea for the series!! :D
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Thank you! Glad you think so. I'm sure if there will be a next enemy, or I'll do some more attacks, then go to the boss fight directly. Either that, or the next enemy will be a defensive/tanky enemy. Haven't decided yet
@JoMarcos28
@JoMarcos28 7 ай бұрын
@@AliElZoheiry Looking forward to seeing all the these ideas implemented in the series. I have learned a lot from this.
@theindiegamedude
@theindiegamedude 7 ай бұрын
Thanks for the awesome content as always! :) I had a slight issue getting the Take Damage node as a message to show up when dragging off the branch to check that the "Attack Target" equals the Actor in the "AOEDamageActor". This was causing the Melee enemy to damage itself on the first spin of the new spin attack XD All I had to do was untick/uncheck the check box that says "Context Sensitive" on the node search window. Just leaving this here, incase anyone else runs into this. Can't wait to see what you do with the boss :) Stay blessed 🙏
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
You're very welcome 😇🙏 Glad that you fixed the issue, but im not sure why the content search would have anything to do with the damage function, but if it works, it works 😶
@theindiegamedude
@theindiegamedude 7 ай бұрын
@@AliElZoheiry - Haha, I was thinking the same exact thing XD Maybe something to do with the latest version of the editor. It's been a bit finnicky the past few weeks. Ever since integrating Visual Studio, and using C++ with 5.3.1. Or perhaps just something about my machine lately. Sometimes restarting the editor works, sometimes rebooting my entire machine. Could just be the olé' technical gremlins XD "Whatever Works" has been an ongoing motto lately, haha. Have a fantastic weekend :)
@nfrancisj2122
@nfrancisj2122 7 ай бұрын
Have you tried using the Sequencer for authoring animations? (I haven't, but curious) It's suppose to be "the new way" to animate + I think it supports exporting to montage/sequences for blend state use. (i think)
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
I have tried it for basic animations, or poses, but I am not an animator, so it was quite difficult for me to use without a proper understanding of the basics of animation. Though it did seem like a very useful tool, filled with features, and I made a small cinematic with it once. You can see it at the end of this video kzbin.info/www/bejne/hKGmiXehrcZnmKM
@diliupg
@diliupg 3 ай бұрын
I am building an FPS game and I used the sequencer to build all the reloading animations and they look pretty good. There is an FPS animation build tool in the market place which has a good price and is a gem.
@liobag2830
@liobag2830 7 ай бұрын
DEMACIAAAAAAA!!!!
@zrmdevelopment7260
@zrmdevelopment7260 7 ай бұрын
ez, top diff, nexus gap, cope, ?, 15,
@luffy8602
@luffy8602 7 ай бұрын
Amazing
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Thank you! Cheers!
@kevensantos-prf
@kevensantos-prf 7 ай бұрын
Hello master, could you add a function to the Ranged enemy or Magic Enemy so that when he has low health, he kicks or stuns the target around him and then runs away to heal himself.
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Hey keven, thank you for the suggestion, I'll add it to the list 👍
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
Dude When you combine everything and when you'll finished Smart & Boss AI? I am wanted finishing my game
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Not sure exactly when it will be finished, but hopefully a few more parts till the boss
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
@@AliElZoheiry few more? How much?
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
@@AliElZoheiry You can finished in November?
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
I don't know to be honest 🤷‍♂️ but probably not in November, thats too soon
@iwantswigun2889
@iwantswigun2889 6 ай бұрын
Hi, do you accept suggestions tutorials in unreal engine from comments?
@AliElZoheiry
@AliElZoheiry 6 ай бұрын
Hey, if you have any suggestions, definitely let me know in the comments. Then I add all suggestions to a list, and if the same suggestion pops up multiple times (or just sounds fun and interesting) then I follow up on it
@BooneyianLogic
@BooneyianLogic 5 ай бұрын
I cant seem to figure out how to import the mixamo animation into Unreal. I always get an error, failed to import, something about root bone.
@AliElZoheiry
@AliElZoheiry 5 ай бұрын
If you're trying to assign a mixamo animations that was meant for a specific mixamo character, onto your unreal mannequin, then you're definitely gonna get errors. You have to retarget the animations from one skeleton to another, and also good to know that mixamo animations don't have root bone, so you would have to add that yourself during retargetting
@adamsimonds6184
@adamsimonds6184 2 ай бұрын
There's a blender plugin that you can use to add a rootbone to mixamo animations. Druidmechanics has a video about how to use it
@TheVorlecGame
@TheVorlecGame 3 ай бұрын
Hey man, i noticed that if you die in the middle of the spinning attack, and then respawn, the enemy just stands still, like if the behavior tree got stuck. any solutions?
@AliElZoheiry
@AliElZoheiry 3 ай бұрын
Depends on how you do the respawn functionality, if you are removing the actor from the level and adding a new one, then I don't see this as a problem, and if you are respawning the same actor, then make sure to stop the behavior tree and start it again from scratch
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
Hey Ali I am have Take Damage But, not have Damage Causer - 32:34. When you making this?
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
This was added in part 8.5, to fix Bug number 2 kzbin.info/www/bejne/a57Hcod4adqModE
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
@@AliElZoheiry Its weird I Cant see this part
@zrmdevelopment7260
@zrmdevelopment7260 7 ай бұрын
You don't see the link that he just shared? If not, you can also try to find episode 8.5 in Playlist -> Smart Enemy AI Tutorial Series and search for episode 8.5@@QQ-jt7rs
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
You mean part 8.5 is not visible to you?
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
@@AliElZoheiry Yes. Now I can see part 8.5 But, don't worry I finding. Sometimes YT not recommending videos
@PinducaGigante
@PinducaGigante 7 ай бұрын
Will you do the boss class?
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Yeah, I will eventually make a boss tutorials
@PinducaGigante
@PinducaGigante 7 ай бұрын
@@AliElZoheiry oh, ok , thank you very much
@shantagmorelbereth1408
@shantagmorelbereth1408 2 ай бұрын
(Update 2 weeks later: see comment for fix) Unfortunately, the Chase Attack Target is not actually chasing the player, the enemy remains spinning in place and chase after the animation has ended. I took the montage from your project and I even created two others: one with everything enabled about root force and root motion, and one without the enabled root motion. I am trying to run the project on 5.3.2. I have seen that a different chase method is provided in the next episods so I hope it will fix this issue.
@AliElZoheiry
@AliElZoheiry 2 ай бұрын
Hey there, hope you fixed the issue 🙏
@shantagmorelbereth1408
@shantagmorelbereth1408 2 ай бұрын
Not yet but I guess I found the issue: It is from the animation itself that i have migrated from your project. It was already tweaked and therefore the force root motion was in a way disabled. So I am going to pull the anim from mixamo and doing it from scratch ((still good for leaning by practicing :)) @@AliElZoheiry
@shantagmorelbereth1408
@shantagmorelbereth1408 Ай бұрын
Fixed :) @@AliElZoheiry I had both "root motion enable" and "force root lock" ticked in the spinning animation. I learned something new from episod 19: A montage inherits its animation root options. In disabling "root motion enable" and "force root lock" I had the motion and the spin activated as expected when playing the simulation. Thank you Ali :)
@qasimimtiaz697
@qasimimtiaz697 4 күн бұрын
@@shantagmorelbereth1408 can you guide me a little more about it because I'm having the same issue but this fix didn't worked for me
@cegeims1103
@cegeims1103 6 ай бұрын
@AliElZoheiry
@AliElZoheiry 6 ай бұрын
☺️🙏👍😄
@QQ-jt7rs
@QQ-jt7rs 7 ай бұрын
Dude I Have bugs MageEnemy & Question how to fix RangeAI & Melee Focus [Maybe part 8.5, I can fix Bugs]. You have discord or Email? I want to contact you
@AliElZoheiry
@AliElZoheiry 7 ай бұрын
Discord link in the video description, please ask your question in the appropriate channel
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 29 МЛН
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 60 МЛН
How to do AOE damage and healing | Unreal Engine 5 Tutorial | ue5
58:20
Why Dependencies are Bad and How To Avoid Them In Unreal Engine | UE5
26:40
Bow & Arrow Masterclass | Unreal Engine (UE5) | Part 1
44:04
Ali Elzoheiry
Рет қаралды 12 М.
Bow & Arrow Masterclass | Unreal Engine (UE5) | Part 3
58:58
Ali Elzoheiry
Рет қаралды 2,4 М.
How to Make a Simple Behavior Tree in Unreal Engine 5 - Advanced AI
20:47
Money Vs Knowledge , Help Spider-man 🤑😢#shorts
0:49
DISASTER X
Рет қаралды 7 МЛН
200IQ заключенный #фильм
0:57
CutTheStories
Рет қаралды 16 МЛН