Force Failure
Force Failure — finish a step, then reject the branch
Force Failure runs its child and returns Failure to the parent, even if the child succeeded. For example, this lets you end the current branch of a Sequence. It does not cut off unfinished work: Running stays Running.
Observe the parent stop
You need your own tree that you start by hand: Activation → Is Loaded and Execution → When Activated → Do nothing. Getting Started shows how to add and connect nodes.
- Add
Sequence,Force Failureand twoFixed Statusnodes. Connect them in the order below, left to right. - Set both Fixed Status nodes to
General → Status → Success.General → Childon Force Failure should name its child.
My Tree
└─ Sequence
├─ Force Failure
│ └─ Fixed Status: Success
└─ Fixed Status: Success
- Click the upper
Tick BT Once. The child of Force Failure returnsSuccess, but Force Failure and Sequence returnFailure. The last Fixed Status is not called in this pass. - Set the first Fixed Status to
Runningand tick again. Now Force Failure and Sequence returnRunning. Set the child back toSuccess, and the next tick finishes the branch withFailure.
| Setting or child result | Effect |
|---|---|
| Child | One child. For several steps, connect a child Sequence |
| Success | Force Failure returns Failure |
| Failure | Force Failure returns Failure |
| Running | Force Failure returns Running and does not force the child to finish |
The smallest case, a successful child whose result is changed:
Force Failure
└── Child Node (Success)
With no children, the node returns Failure. The parent decides what happens next: Sequence stops on Failure, while Selector tries the next option.