Re-evaluating a ParentTask?

genoli

New member
I've created a script based off the Sequence parent task that selects a child based upon a variable, however the problem is if I change that variable, the parent task doesn't re-evaluate, is there a way to do this?

Edit: Seems you need to use BehaviorManager.instance.Interrupt() function on the Sequence task and stick a Repeater above it so after interrupt it restarts and uses the updated variable, not sure if this is the best way but it seems to work.
 
Last edited:
Top