Announcement

Collapse
No announcement yet.

AI - Surround Player

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI - Surround Player

    Hey Unreal Com!
    My NPC Enemys currently have a pretty basic Behavior Tree:
    Is Enemy close to Player?
    Yes: Attack him
    No: Move To Player

    This ends like in the photo I added. Some of them stack up, and cant attack the player.

    It would be awesome if you can give me a hint on how to surround the player, like in warcraft 3.
    Maybe find locations with an eqs and then check if their already is someone?

    Thanks in advance and have a nice weekend.

    #2
    One way it's to make your AI Keep the distance from their friendlies( themselves ). OR run into the back of the enemy if the enemy has an enemy in front, there are many ways.
    Some cool unreal projects you may like!


    Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

    Download the demo Download the demo
    external link Dropbox DropBox

    Become a c++ Professional now C++ Networking Tutorial

    Comment


      #3
      " run into the back of the enemy if the enemy has an enemy in front, there are many ways."

      So I dont use the "MoveToActor" but create a custom Task and do the check there? If Enemys close to his face, choose a location x behind his back?

      Thanks in advance

      Comment

      Working...
      X