Simple Interrupts not woking

didioliver

New member
Hey guys! I bought the framework yesterday and I'm trying to learn as much as possible with documentation and videos, but simple things like this don't work...

I just want some branch run one time so I am trying the Interrupts, in this simple example the "Log" trigger always that Tree restart. What I am doing of wrong? Thx

I tried few things(images bellow)

1714619465326.png1714619558143.png
 

Attachments

  • 1714619379022.png
    1714619379022.png
    28.6 KB · Views: 0
I did my own custom disable Task. I dont know if is the best practice I think the framework do this by default task. Anyway this solve my issue

public class CustomInterrupt : Action
{

[SerializeField]
private Task task;

public override TaskStatus OnUpdate()
{
task.Disabled = true;
return TaskStatus.Success;
}
}
 
Disabling the task will work, but from your original tree it looks like you are mixing conditional aborts with interrupts. In addition, you have a self conditional abort set and no conditional task so the abort won't trigger. My guess is that the interrupt did actually run, but the tree has nowhere else to go after that so it just ends or resets depending on your component settings.
 
ah okay, thx for the reply =D and congrats for this strong framework. I love it! You probably will se me some times here haha :p
 
Top