Great tutorial mate! I just wanted to ask if there is a specific reason for using loops. I tried a different approach, by getting the length of the animation montage array then feed that into a random integer block as the maximum value and then getting a copy of the array element using that result as the index. This gives as the animation montage to play. Save that into a new animation montage variable (CurrentAnimationMontage for example) and then feed that into the play animation montage and into the stop animation montage. I think this way you can avoid for loops, and have slightly better performance. I'm just starting my journey into UE and as I watch more and more tutorials to get myself familiar with the mechanics and the engine, I see the usage of for loops is quite common in similar scenarios which could easily be avoided and I wonder if there is something I'm missing here. Again thanks for the great tutorial and for your time. Keep it up :)
This tutorial is amazing! Thank you so much. Everything works fine except that my wolf just slides, too. Everything else works as intended. Does anyone have a solution to this problem?
This is a common mistake people seem to be making. On your for each loop when shuffling your array, make sure you're dragging out of the 'Completed' pin and not the 'Loop Body' pin when connecting to your play anim montage node.
@@ElusivePandaGames I've dragged out of the 'completed' pin but still have the same issue. The roaming works until I start following the animation montage section of your tutorial and I'm about to rip out all of my hair trying to fix the issue ;-; It's one of the best tutorials I've seen for this, just wish I wasn't running into this problem cos I really really need it to work lol
Hello, thanks for the great tutorial. I'm wondering how I can give the animations sounds. Because when I put a metasound in the animation montage, I unfortunately hear it throughout the entire level. Sorry, I'm a beginner, can you give me a tip?
That is pretty good, My question is how would i get the animal to run to the closes hole nearby. It runs to the first placed hole in world. But this one no matter how many i place it all of them run to the first placed.
Try the command "Get all actors of class," get a copy from the array of said actors and promote to variable. Feed this into the Target Actor of the AI MoveTo function as normal. This should have the animal select the closest nearby Actor of the selected class. Also works for characters chasing other characters, and any other Chase-Actor interaction you can think of
This doesn't seem working properly when there are multiple holes in the level. And also when the rabit leaves the hole, it doesnt' leave from the location of the hole, there are some offset. any idea?
I did everything as in the video and after adding anim montage, my wolf stopped using walking and running animations and just slides and sometimes uses rest animation. Can you help solve this problem?
Are the animals not moving? Maybe you still need to add the nav mesh. If you reach out to me on Discord I might be able to help you. Link in description.
I'm running into the issue where my wolf is repeating the idle only montage and it's not rotating through. And I have the shuffle on there I'm just trying to figure out what could possibly be causing it or not to rotate
This tutorial is more focused on having a pre-determined destination. The Rabbit runs from the player but only towards their predetermined destination. I found this easier to implement and understand for a beginner/intermediate which is who I try to make my tutorials for. There are tutorials on youtube for making an ai run away from the player. It's not too hard but it is more complex than this setup and requires a different logic setup entirely.
Good evening, that's my question exactly I've searched online for 2 days trying to find a decent tutorial to explain just that, having a deer running away from player but they are all extremely complex and are very hard to follow especially after making the original Ai Blueprint, and The Animation Bp. I'm at the same place I have it all except for "AI Move To" at 8:52. Ive tried the AIPerception and the Behavior Tree but was not successful in either. BTW Awesome tutorial it's one of the best out there.@@ElusivePandaGames
So after adding the anim montages blueprints my wolf no longer runs/walk and just glides. It also will activate the rest anim while moving. Ive watched the video multiple times and im lost. Any help?
Hi. Thanks for the AI Wolf video. Can you give me a hint? I added a dog, but when I move it is thrown back.Hi. Thanks for the AI Wolf video. Can you give me a hint? I added a dog, but when I move it is thrown back.
This tutorial is amazing, and very easy to follow! Thanks for sharing!
Tip on ai move to, use on success into shuffle instead of the first pin. For me it doesnt work if i use the first pin
Same here. I also had to not add the "slot_default" in the anim bp; it caused issues
big thank you
Great video right to the point. Will you be doing any others on this like using attach and death if animal is shot etc This one was GREAT A++++++++
you def gotta keep up these amazing tuts....AI with blueprints more of them .
This was a damn good tutorial format man.
Great tutorial mate!
I just wanted to ask if there is a specific reason for using loops.
I tried a different approach, by getting the length of the animation montage array then feed that into a random integer block as the maximum value and then getting a copy of the array element using that result as the index. This gives as the animation montage to play.
Save that into a new animation montage variable (CurrentAnimationMontage for example) and then feed that into the play animation montage and into the stop animation montage.
I think this way you can avoid for loops, and have slightly better performance.
I'm just starting my journey into UE and as I watch more and more tutorials to get myself familiar with the mechanics and the engine, I see the usage of for loops is quite common in similar scenarios which could easily be avoided and I wonder if there is something I'm missing here.
Again thanks for the great tutorial and for your time. Keep it up :)
This tutorial is amazing! Thank you so much. Everything works fine except that my wolf just slides, too. Everything else works as intended. Does anyone have a solution to this problem?
Lmao my animals playing the montages for walking now completely took away roaming
This is a common mistake people seem to be making. On your for each loop when shuffling your array, make sure you're dragging out of the 'Completed' pin and not the 'Loop Body' pin when connecting to your play anim montage node.
@@ElusivePandaGamesSadly that doesn't fix the issue. While the wolf is roaming the animations still playing. And there are no walk animations now.
@@rekaidavid
Have you fixed the issue??
don't
Any solutions for the issue??
@@ElusivePandaGames I've dragged out of the 'completed' pin but still have the same issue. The roaming works until I start following the animation montage section of your tutorial and I'm about to rip out all of my hair trying to fix the issue ;-; It's one of the best tutorials I've seen for this, just wish I wasn't running into this problem cos I really really need it to work lol
Great tutorial! Keep it up!
Hello, thanks for the great tutorial. I'm wondering how I can give the animations sounds. Because when I put a metasound in the animation montage, I unfortunately hear it throughout the entire level. Sorry, I'm a beginner, can you give me a tip?
My wolf just drags all over the place (no walk or run animation), not quite sure what went wrong but will keep at it.
did you solve this problem?
Is there anyway to make some of the animals hunt others? Like the wolf hunting the rabbit?
my wolf roamed fine until i added animations, unfortunately removing them again didn't fix it
That is pretty good, My question is how would i get the animal to run to the closes hole nearby. It runs to the first placed hole in world. But this one no matter how many i place it all of them run to the first placed.
Try the command "Get all actors of class," get a copy from the array of said actors and promote to variable. Feed this into the Target Actor of the AI MoveTo function as normal. This should have the animal select the closest nearby Actor of the selected class. Also works for characters chasing other characters, and any other Chase-Actor interaction you can think of
@@sagesstage6121 Sorry that didn't work. I am using a spawner to get the animal to spawn in world.
This doesn't seem working properly when there are multiple holes in the level. And also when the rabit leaves the hole, it doesnt' leave from the location of the hole, there are some offset. any idea?
I did everything as in the video and after adding anim montage, my wolf stopped using walking and running animations and just slides and sometimes uses rest animation. Can you help solve this problem?
Same
I have done everything correctly but no movement. any suggestions?
Are the animals not moving? Maybe you still need to add the nav mesh. If you reach out to me on Discord I might be able to help you. Link in description.
@@ElusivePandaGames yes animals not moving. definately have perfect nav mesh. Behaviour tree says “inactive” while testing. Any suggestions?
I'm running into the issue where my wolf is repeating the idle only montage and it's not rotating through. And I have the shuffle on there I'm just trying to figure out what could possibly be causing it or not to rotate
You're awesome! thx.
Love this
My "cast to AI_Wolf" fails.
How do i debug it to find out why?
Hi, good, I'm following the steps, but when the wolf has to run with the animations, it only reproduces the idle one, any help please?
same thing for me
How can I make it to where half of
the animal doesnt go through the wall without making the sphere collision giant?
My rabbits sensing and hiding is completly broken :(. Can you help me fixing it?
Hello there
What if I want to have a deer that flees from the character??
What do I need to put there instead of "AI Move To" 8:52 🙁
This tutorial is more focused on having a pre-determined destination. The Rabbit runs from the player but only towards their predetermined destination. I found this easier to implement and understand for a beginner/intermediate which is who I try to make my tutorials for.
There are tutorials on youtube for making an ai run away from the player. It's not too hard but it is more complex than this setup and requires a different logic setup entirely.
Good evening, that's my question exactly I've searched online for 2 days trying to find a decent tutorial to explain just that, having a deer running away from player but they are all extremely complex and are very hard to follow especially after making the original Ai Blueprint, and The Animation Bp. I'm at the same place I have it all except for "AI Move To" at 8:52. Ive tried the AIPerception and the Behavior Tree but was not successful in either. BTW Awesome tutorial it's one of the best out there.@@ElusivePandaGames
Very nice video! Where did you get the models and animations?
Thanks! I've updated the description with the links to both assets.
My animals don't disappear, any thoughts?
bro how to make the wolf hit or bite the third person?
So after adding the anim montages blueprints my wolf no longer runs/walk and just glides. It also will activate the rest anim while moving. Ive watched the video multiple times and im lost. Any help?
You need to add the default slot to the anim bp.
So I already have the default slot on my anim bp
Hi. Thanks for the AI Wolf video. Can you give me a hint? I added a dog, but when I move it is thrown back.Hi. Thanks for the AI Wolf video. Can you give me a hint? I added a dog, but when I move it is thrown back.
Hard to say without reviewing your code. You can reach out to me on discord and I can take a look if you send me screenshots.
Could I send you a message on discord about a question I have? I can't get this thing to stop chasing me.
After Adding the Montages Section there is no Animation anymore
same
@@rekaidavid fixed it, I forgot add the Volume Room
@@FlokzGOTY Volume Room? where do u add that?
@@rekaidavid 1:56
NashMeshBoundsVolume
Man I would pay a monthly sub just to have 1on1 training with you