# UnPossess AI not working fine

**URL:** <https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368>\
**Category:** Community & Industry Discussion\
**Tags:** health, unreal-engine, question\
**Created:** [August 7, 2020, 5:47pm UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368 "2020-08-07T17:47:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [August 7, 2020, 5:47pm UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368/1 "2020-08-07T17:47:21Z")

</div>

Hello there. I made a function for unpossess and i m calling it after my hero 's health is \<= 0. I made the opossite just to see if it’s working and it’s working fine. But when i connect the branch to true, AI still firing after my player’s death and unpossess is not working. Anybody knows why? I guess the problem is Event Begin play.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [August 7, 2020, 10:53pm UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368/2 "2020-08-07T22:53:08Z")

</div>

Begin play fires only once and that’s it. You should check if player has died when he is receiving damage and then un-possess.

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [August 10, 2020, 9:17am UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368/3 "2020-08-10T09:17:11Z")

</div>

So i made this one in my character’s blueprint and still not working

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [August 10, 2020, 9:18am UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368/4 "2020-08-10T09:18:02Z")

</div>

![309755-44444.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/a/67ad9af0d43a930732156a78fe9cdac0e94863ba.png)

---

<div class="post-metadata">

**Author:** ![Soleniah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soleniah](https://forums.unrealengine.com/u/Soleniah)\
**Post date:** [August 10, 2020, 9:49am UTC](https://forums.unrealengine.com/t/unpossess-ai-not-working-fine/469368/5 "2020-08-10T09:49:18Z")

</div>

![309761-66666.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/c/22c4bc3b5fdf82d83e9ac1f032f4c6e688ea0cef.png)

i called a fuction though from AI bp still got nothing. Dont know if it 's the same thing with above
