# Behavior Tree Wait task change time runtime?

**URL:** <https://forums.unrealengine.com/t/behavior-tree-wait-task-change-time-runtime/330449>\
**Category:** AI\
**Tags:** Behavior-Tree, service, unreal-engine, CPP, Blueprint, question\
**Created:** [August 31, 2015, 2:51am UTC](https://forums.unrealengine.com/t/behavior-tree-wait-task-change-time-runtime/330449 "2015-08-31T02:51:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon72431819](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon72431819](https://forums.unrealengine.com/u/anon72431819)\
**Post date:** [August 31, 2015, 2:51am UTC](https://forums.unrealengine.com/t/behavior-tree-wait-task-change-time-runtime/330449/1 "2015-08-31T02:51:36Z")

</div>

Hi I have a simple AI that I want to control the attack speed of an enemy unit. Basically giving him some extra time when he has a debuff. But I was wondering if it is possible to change the Wait Task “Wait Time” during runtime? I was wondering If I need to do it in c++ by making a child class wait time and setting it up by myself? Or if it’s a better way to do it in blueprint.

I kind of made it work with a service where in code I can change the Interval time but when doing it in the Behavior Tree the time is almost double to what I set.

Any help would be greatly appreciated.  
Regards

---

<div class="post-metadata">

**Author:** ![anon72431819](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon72431819](https://forums.unrealengine.com/u/anon72431819)\
**Post date:** [August 31, 2015, 3:49am UTC](https://forums.unrealengine.com/t/behavior-tree-wait-task-change-time-runtime/330449/2 "2015-08-31T03:49:55Z")

</div>

I got it working with “Wait Blackboard Time” and setting up the certain time in code. So now it works as it should.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_53afa90f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_53afa90f](https://forums.unrealengine.com/u/anonymous_user_53afa90f)\
**Post date:** [March 12, 2017, 9:12am UTC](https://forums.unrealengine.com/t/behavior-tree-wait-task-change-time-runtime/330449/3 "2017-03-12T09:12:21Z")

</div>

OH! It helped me! Thank you very much !!! “Wait Blackboard Time” 🙂
