# why does my validation check not work?

**URL:** <https://forums.unrealengine.com/t/why-does-my-validation-check-not-work/387505>\
**Category:** Cinematics & Media\
**Tags:** Destroy, ai-controller, unreal-engine, sequence, question\
**Created:** [March 10, 2017, 12:29pm UTC](https://forums.unrealengine.com/t/why-does-my-validation-check-not-work/387505 "2017-03-10T12:29:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TankbusterGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TankbusterGames](https://forums.unrealengine.com/u/TankbusterGames)\
**Post date:** [March 10, 2017, 12:29pm UTC](https://forums.unrealengine.com/t/why-does-my-validation-check-not-work/387505/1 "2017-03-10T12:29:29Z")

</div>

**Problem: I destroy an Actor belonging to an AI Controller. I used Un Posses and DestroyActor (Pawn) (just to be safe)**

On Tick, i update the AI, so i wanted to check if the Controlled Pawn is still valid, and if not, do nothing, and wait until the AI get’s assigned to a new pawn.

So, on Event Tick i used a validation check **IsValid** before my main sequence, but while playing, i get some errors in the functions/macros after the sequence. How is that possible? I copied the validation, thing and added it after the sequence, and it seems to work, but i still get random errors once in a while and feel not safe anymore…

**If the Pawn does not exist, the execution should never reach the sequence any way.  
Is the pawn not immediately destroyed after DestroyActor? How can it be? And how can i solve this problem?**

Thanks for help 🙂  
Tank

 ![129397-nug.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/8/af8e3972d6f98b1512b39f8cce40b85c2edc7acf.png)
