# An evade system like World of Warcraft possible?

**URL:** <https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706>\
**Category:** AI\
**Tags:** ai-navigation, Perception, unreal-engine, question, UE4-27, Blueprint\
**Created:** [March 21, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706 "2022-03-21T20:59:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [March 21, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/1 "2022-03-21T20:59:07Z")

</div>

Hi. I was just wondering if an AI “evade” system like in World of Warcraft is possible to be made with blueprints. If you don’t know what I’m talking about, in WoW, basically when the AI cannot reach the player it cannot be damaged. This fixes a lot of unfair stuff in the game - for example if you get somewhere the AI cannot reach, you cannot damage the AI, and it basically regens health.

Regenerating the health is pretty easy but I was wondering, how can I check if the AI cannot navigate to a specific point which the player is in? Is there any method to do this? I’d really appreciate any help on this subject, since this is gamebreaking for my current project I’m working on! Thanks.

WoW’s evade system explained: (Wowpedia)  
**Evade** is an NPC-exclusive avoidance mechanic. It is triggered when an attacking mob is unable to reach its target (due to terrain limitations for example). Its purpose is to discourage exploitation of terrain versus an enemy. When a mob is in evade mode, it becomes immune to any and all attacks and spells from every player, and will regenerate health as though it was out of combat.

Reference video to the issue I have:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c5cec482b3d0768fd6f340cd255099036496405.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c5cec482b3d0768fd6f340cd255099036496405.mp4)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 21, 2022, 9:24pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/2 "2022-03-21T21:24:05Z")

</div>

Look into navigation mesh:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/b/74b2281e2d129542fe0596854b0aadb063a0e55a.png)

And the nodes that work with it.

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [March 22, 2022, 1:51am UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/3 "2022-03-22T01:51:08Z")

</div>

Hey this is perfect. Appreciate the insight! But how would I go about this within the behavior tree? All of my AI is built with it.

---

<div class="post-metadata">

**Author:** ![Kinos141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kinos141](https://forums.unrealengine.com/u/Kinos141)\
**Post date:** [March 22, 2022, 3:39am UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/4 "2022-03-22T03:39:10Z")

</div>

I learned something new.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 22, 2022, 8:00am UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/5 "2022-03-22T08:00:28Z")

</div>

See, there are few things I literally never touched in UE4… and [Behaviour Trees](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/ArtificialIntelligence/BehaviorTrees/) is one of them. Never found the time / need to explore it, only ever needed the most basic nodes stuff. Wish I could help.

Gonna summon the wizard: @ClockworkOcean

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 22, 2022, 8:38am UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/6 "2022-03-22T08:38:35Z")

</div>

Pof!

![giphy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/a/aba4a2698ac3129f9ca3cb280727f062d1dc7e38.gif)

( that’s me appearing ).

I don’t do much with AI, but you can check if it reach the player with

> [@Check if AI can't reach target](https://forums.unrealengine.com/t/check-if-ai-cant-reach-target/388874):
>
> So, I’m creating an artificial intelligence character. He can detect, follow and attack me if, naturally, I’m in a navmesh. As you can see, there is a void between the player (grey) and the AI (orange). Now, I want the AI to stop trying to move toward me if the void separates us, so I check if he can’t reach me. I know I can use either AIMoveTo’s “On Fail” exec or HasPartialPath, but… [image] “On Fail” only gets triggered if I’m not in a navmesh, so, it would only work if it was li…

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [March 22, 2022, 1:30pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/7 "2022-03-22T13:30:36Z")

</div>

Haha fun thread. Thanks guys for the answers, much appreciated!

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [March 22, 2022, 2:21pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/8 "2022-03-22T14:21:43Z")

</div>

OK so I have looked a bit more into this and it seems like I need to use EQS to achieve what I want, however it’s a little complicated to understand and execute. Anyone experienced with EQS? I’d appreciate a helping hand! 😄

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 22, 2022, 2:34pm UTC](https://forums.unrealengine.com/t/an-evade-system-like-world-of-warcraft-possible/508706/9 "2022-03-22T14:34:32Z")

</div>

Not me, I’m afraid. Might be good to do a fresh post 😃
