# Change behavior tree service interval externally?

**URL:** <https://forums.unrealengine.com/t/change-behavior-tree-service-interval-externally/399215>\
**Category:** AI\
**Tags:** Behavior-Tree, service, unreal-engine, question\
**Created:** [June 24, 2017, 6:33pm UTC](https://forums.unrealengine.com/t/change-behavior-tree-service-interval-externally/399215 "2017-06-24T18:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [June 24, 2017, 6:33pm UTC](https://forums.unrealengine.com/t/change-behavior-tree-service-interval-externally/399215/1 "2017-06-24T18:33:25Z")

</div>

I am trying to have an enemy fire a weapon every few seconds when a certain condition is met in the blackboard, but different enemies need to have different intervals for how often they fire their weapon.

Is there a way to change the interval of a service from outside the behavior tree or at runtime? Is there a better way to do this besides a service?

Thanks!
