Easily Make Ai Animals That Chase And Flee In Unreal Engine

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 61

  • @rbgiorgi
    @rbgiorgi 8 місяців тому +5

    This tutorial is amazing, and very easy to follow! Thanks for sharing!

  • @immanueljenkins5036
    @immanueljenkins5036 Рік тому +8

    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

    • @jmarte6089
      @jmarte6089 Рік тому +1

      Same here. I also had to not add the "slot_default" in the anim bp; it caused issues

    • @azzeddindouakha3403
      @azzeddindouakha3403 9 місяців тому

      big thank you

  • @Restart-Gaming
    @Restart-Gaming Рік тому +2

    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++++++++

  • @samnwakefield2032
    @samnwakefield2032 Рік тому

    you def gotta keep up these amazing tuts....AI with blueprints more of them .

  • @jamesonvparker
    @jamesonvparker Рік тому

    This was a damn good tutorial format man.

  • @kostasksilas
    @kostasksilas 5 місяців тому

    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 :)

  • @AlanGodshaw
    @AlanGodshaw Місяць тому

    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?

  • @immanueljenkins5036
    @immanueljenkins5036 Рік тому +3

    Lmao my animals playing the montages for walking now completely took away roaming

    • @ElusivePandaGames
      @ElusivePandaGames  Рік тому

      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.

    • @rekaidavid
      @rekaidavid Рік тому +2

      @@ElusivePandaGamesSadly that doesn't fix the issue. While the wolf is roaming the animations still playing. And there are no walk animations now.

    • @heresmynovel331
      @heresmynovel331 Рік тому

      @@rekaidavid
      Have you fixed the issue??
      don't

    • @heresmynovel331
      @heresmynovel331 Рік тому

      Any solutions for the issue??

    • @toskael6446
      @toskael6446 11 місяців тому

      @@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

  • @Mw2Dagger
    @Mw2Dagger 6 місяців тому

    Great tutorial! Keep it up!

  • @Ferreira-xo5ij
    @Ferreira-xo5ij 28 днів тому

    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?

  • @3BEEZ
    @3BEEZ Рік тому +2

    My wolf just drags all over the place (no walk or run animation), not quite sure what went wrong but will keep at it.

  • @Goodeder
    @Goodeder 10 днів тому

    Is there anyway to make some of the animals hunt others? Like the wolf hunting the rabbit?

  • @unsupporteddevice
    @unsupporteddevice Рік тому +2

    my wolf roamed fine until i added animations, unfortunately removing them again didn't fix it

  • @TheCultOffical
    @TheCultOffical Рік тому +1

    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.

    • @sagesstage6121
      @sagesstage6121 11 місяців тому +1

      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

    • @TheCultOffical
      @TheCultOffical 7 місяців тому

      @@sagesstage6121 Sorry that didn't work. I am using a spawner to get the animal to spawn in world.

  • @lolaswift111
    @lolaswift111 Місяць тому

    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?

  • @МаксимФролов-и7о
    @МаксимФролов-и7о 9 місяців тому +1

    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?

  • @islandonlinenews
    @islandonlinenews Рік тому +2

    I have done everything correctly but no movement. any suggestions?

    • @ElusivePandaGames
      @ElusivePandaGames  Рік тому

      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.

    • @islandonlinenews
      @islandonlinenews Рік тому

      @@ElusivePandaGames yes animals not moving. definately have perfect nav mesh. Behaviour tree says “inactive” while testing. Any suggestions?

  • @envyingcentaur5357
    @envyingcentaur5357 7 місяців тому

    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

  • @lolaswift111
    @lolaswift111 11 місяців тому

    You're awesome! thx.

  • @lolaswift5019
    @lolaswift5019 10 місяців тому

    Love this

  • @Sith90lord
    @Sith90lord 8 місяців тому

    My "cast to AI_Wolf" fails.
    How do i debug it to find out why?

  • @kurumilive3521
    @kurumilive3521 Рік тому +1

    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?

  • @KillerDudeT19
    @KillerDudeT19 Рік тому

    How can I make it to where half of
    the animal doesnt go through the wall without making the sphere collision giant?

  • @rekaidavid
    @rekaidavid Рік тому

    My rabbits sensing and hiding is completly broken :(. Can you help me fixing it?

  • @heresmynovel331
    @heresmynovel331 Рік тому +1

    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 🙁

    • @ElusivePandaGames
      @ElusivePandaGames  Рік тому

      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.

    • @terryp594
      @terryp594 8 місяців тому

      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

  • @sebstepet
    @sebstepet Рік тому

    Very nice video! Where did you get the models and animations?

    • @ElusivePandaGames
      @ElusivePandaGames  Рік тому

      Thanks! I've updated the description with the links to both assets.

  • @CarscottScott
    @CarscottScott 6 місяців тому

    My animals don't disappear, any thoughts?

  • @mohitlm3413
    @mohitlm3413 9 місяців тому

    bro how to make the wolf hit or bite the third person?

  • @Jordan-vv7jg
    @Jordan-vv7jg 9 місяців тому

    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?

    • @ElusivePandaGames
      @ElusivePandaGames  9 місяців тому

      You need to add the default slot to the anim bp.

    • @Jordan-vv7jg
      @Jordan-vv7jg 9 місяців тому

      So I already have the default slot on my anim bp

  • @Gladiy
    @Gladiy Рік тому

    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.

    • @ElusivePandaGames
      @ElusivePandaGames  Рік тому

      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.

  • @TheDinky21
    @TheDinky21 Рік тому

    Could I send you a message on discord about a question I have? I can't get this thing to stop chasing me.

  • @FlokzGOTY
    @FlokzGOTY Рік тому

    After Adding the Montages Section there is no Animation anymore

    • @rekaidavid
      @rekaidavid Рік тому

      same

    • @FlokzGOTY
      @FlokzGOTY Рік тому

      @@rekaidavid fixed it, I forgot add the Volume Room

    • @rekaidavid
      @rekaidavid Рік тому

      @@FlokzGOTY Volume Room? where do u add that?

    • @FlokzGOTY
      @FlokzGOTY Рік тому

      ​@@rekaidavid 1:56

    • @FlokzGOTY
      @FlokzGOTY Рік тому

      NashMeshBoundsVolume

  • @fawkurface46
    @fawkurface46 5 місяців тому

    Man I would pay a monthly sub just to have 1on1 training with you