Hello everyone, I have been stumped on this problem despite working on it for hours this week. I am aware that UE4 allows us to use a cooldown decorator node in the behavior tree. However, the problem with the cooldown decorator is that it locks up the entire behavior tree for its duration. I am trying to create an enemy that stays within a certain range of the player by either retreating or advancing, while at the same time, throwing a bomb every two seconds. If I use a cooldown node on my attack task, what happens is that the enemy cannot move around during the cooldown. I want to make sure that the enemy can only attack every two seconds, but at the same time move around even if the attack task is still cooling down. Can anyone help me?
I found a solution. I decided to replace the attack task with an attack service that goes off every 2 seconds.