# Blackboard Set value as bool doesn't take affect

**URL:** <https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 4, 2023, 7:43pm UTC](https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813 "2023-06-04T19:43:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattatouilleDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattatouilleDev](https://forums.unrealengine.com/u/MattatouilleDev)\
**Post date:** [June 4, 2023, 7:43pm UTC](https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813/1 "2023-06-04T19:43:05Z")

</div>

Hey there, I’ve got a question. I can’t figure out why “set value as bool” doesn’t take affect.  
If the conditions are true (Actor has Tag returns true also) the value still keep false state.

Does someone know what’s going wrong? I don’t set the variable in other Blueprint or other position.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/6/6c6e0b66ef3925cd78f234786e82a0e6513987f6.jpeg)

There is something more inside my AIController:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/0/de0fb1588ddf874195323180ab1c1dd90bf65b75.png)

Set “PlayerInAttentionCircle” works. If I try to assign “PlayerInAttackRange” at the same position it doesn’t work (just for testing; Broke Link from EventTick)

This is my Blackboard

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/1/56151e92b658a9588250eca77f1a0793576bff54.png)

I am really confused about that.

---

<div class="post-metadata">

**Author:** ![MattatouilleDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattatouilleDev](https://forums.unrealengine.com/u/MattatouilleDev)\
**Post date:** [June 4, 2023, 7:47pm UTC](https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813/2 "2023-06-04T19:47:47Z")

</div>

If I log “Actor Has Tag” between Branch (condition true) and Set Value as bool it returns true. Value of ActorInAttakRange stay false…

---

<div class="post-metadata">

**Author:** ![MattatouilleDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MattatouilleDev](https://forums.unrealengine.com/u/MattatouilleDev)\
**Post date:** [June 4, 2023, 7:52pm UTC](https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813/3 "2023-06-04T19:52:32Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/8/5d84168f5ab359aba56077fde3e626394b3f90d2.png)

Shame on me! Didn’t set the default value of the name variable. Of course had to set it to “PlayerInAttackRange”.

Sorry for that…

Just leaving this post if someone else is dreaming too much while working…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 4, 2023, 7:53pm UTC](https://forums.unrealengine.com/t/blackboard-set-value-as-bool-doesnt-take-affect/1188813/4 "2023-07-04T19:53:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
