# my boolean variable doesnt work on behavior tree

**URL:** <https://forums.unrealengine.com/t/my-boolean-variable-doesnt-work-on-behavior-tree/718780>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 30, 2022, 5:27pm UTC](https://forums.unrealengine.com/t/my-boolean-variable-doesnt-work-on-behavior-tree/718780 "2022-11-30T17:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![berettaV2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@berettaV2](https://forums.unrealengine.com/u/berettaV2)\
**Post date:** [November 30, 2022, 5:27pm UTC](https://forums.unrealengine.com/t/my-boolean-variable-doesnt-work-on-behavior-tree/718780/1 "2022-11-30T17:27:00Z")

</div>

![1111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/7/9a777d5526d8a659fd44c4d14d20b7d7c7a69e06.png)  
 ![22222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/3/9437b3c8c581b204087c685a9e80f434d3106228.png)  
thats how i setted my ‘alive?’ variable. it doesnt work on behavior tree, it just gets as default value, it doesnt change whether npc is alive or dead. (i uploaded my behavior tree either, do you know wheres the problem?  
 ![behaviortree](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/b/6ebad864cd784ed3ea6bb8e87ae746f21ab4d1c7.png)
