[Feature Request] RetryUntilSuccessful decorator
Posted: 2025/04/25 20:23
Hey,
is there any way I can achieve the 'RetryUntilSuccessful' loop decorator in a behaviour tree?
What it does is basically keep looping the logic until the node returns SUCCESS
OR
if the loop count is over N.
It's possible to achieve similar effect by having a local variable that keeps track of the failure count
however it can be quite messy if I have multiple instances of it. I will also have to manually reset the value everytime the tree is refreshed.
I was trying to implement on my own by combining LoopCheckDecorator and IResultChangeDecorator but realize IResultChangeDecorator is an internal interface therefore I cannot access it.
is there any way I can achieve the 'RetryUntilSuccessful' loop decorator in a behaviour tree?
What it does is basically keep looping the logic until the node returns SUCCESS
OR
if the loop count is over N.
It's possible to achieve similar effect by having a local variable that keeps track of the failure count
however it can be quite messy if I have multiple instances of it. I will also have to manually reset the value everytime the tree is refreshed.
I was trying to implement on my own by combining LoopCheckDecorator and IResultChangeDecorator but realize IResultChangeDecorator is an internal interface therefore I cannot access it.