How to get a "Cooldown" behavior but not "Delay"


Considering that we have a condition "Distance To Target less than N",
if distance to target return Success, AI start to Attack player.

After attack, "Distance To Target less than N" return Success immediately again, then attack player immediately again.

I notice we have a decorator node named "Cooldown", but this node will delay the result everytime, including the first time.

How could I get this kind of behavior?


Staff member
I'm not completely following what you are trying to achieve - can you explain it some more? If you showed a screenshot of your current tree that would also help.