Hey there, in this video I will show you how to make your enemy AI attack you. Attach Weapon to Player: • Attach a Weapon/Item T... Sword Asset: sketchfab.com/3d-models/fanta...
thx bro for the simple and effective logic, i literally was thinking of something waaaay complex to do the same thing using (behaviour tree and services to keep track of the ai distance between the player and AI) but this is just optimised and good enough for what i needed, again thx !
For anyone who had a problem that the enemy was just attacking and not moving towards them, go to the enemy blueprint and after the AI MoveTo change the node from the top one to the on success one
I just finish watch roam,see and attack Make it work like a charm thank you for this good and simple and fast explanation If one day I make a good video game, I hope I dont forget to send you a copy
My AI starts having a seizure once it comes close enough to the player and wont perform any attacks, as if it kept trying to fire an animation it's unable to complete. I tried to modify the collision and radius where it'll stop chasing the player but it won't work and my ABP does have a sloth node between the locomotion and Output pose
Whenever an animation doesn't play, first check the animation blueprint of your character. Make sure there is a 'default slot' node between the locomotion and the output pose. Give this a try
You could create an event in the ai blueprint, which does the attack. You would then also have an event dispatcher, which would be called when the attack ends. This event would then be called in the behaviour tree. This works especially well when using blueprint interfaces.
Hey, great video, but im having some issues making the AI attack me at all. Its for a university project and i cant seem to figure out why it wont attack me. It gets super close and up in my face but doesnt perform any actions. Any advice would be amazing
Hello. I did everything as shown in your video, but when the enemy reaches me, the animation montage doesn't work. I tried using just one, but it still doesn't work. When the enemy reaches me, it stops and doesn't do anything. What could be the solution for this? Thx :)
Double check if any animation plays, if not then you simply need to add a 'default slot' node between the locomotion and the outputpose in the Animabion Blueprint.
Hey love your videos bro! quick question. when my ai attacks me my screen zooms in and I can see the ai through my body for a quick second. can you help me fix this?