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?
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 !
I'm happy this helped you out, and thank you❤️🙏
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
Thank You so much bro very helpfull
Thank you so much great video
Good job my friend!
thanks so much, very helpfull
Good tutorial.
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
why my enemy stop walk when is attacking me, like do a pause and dont use upper body
For some reason the animation wont play?
same, mine just keeps walking towards me
Hello. Why might the animation not play? There is an attack sound, but there is no animation,,,
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
How would i do this if i used the behaviour tree stuff to move the AI
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.
anyway for AI to stop attacking us on it losing sight of us? can this be implemented in this blueprint?
This event only appears when we are in sight so i think there is no need to overcomplicate it.
How can I stop the ai from cause damage on one and the other, I tried to find out my self, but I’m still relatively new, and it’s been mind bogging.
Hey there, what do you mean by 'on one and the other'
@@lisowi. they are fighting themselves , it happen to me to.
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
Check if the animation blueprint for your AI has a 'Default slot' node before the output pose.
@@lisowi. Hi, yes it does have one before the output pose
@@lisowi. is there anything i can try to fix this issue, i did try looking around but i couldnt seem to find the answer
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.
@@lisowi. Thanks ! Now working :D
Hi i did this but the animation only seems to play once now. Thanks! @@lisowi.
@@Zukerpucker Did you ever figure this out? Enemy AI only attacks once
@@williamjohnnystone4571 How do I add a default slot? between the locomotion?
I can
GorKa + Lisowi
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?
Check the collision settings on your camera and spring arm if you have one
@@HighTv420 thanks bro
hey did you ever solve this issue, the AI is getting too close to me and isnt actually attacking me
im getting an error message on the "attack" next to "ai move to"