UntilFailure

The UntilFailure node will keep executing its target node until the target node returns failure.

More Information:

  • This node can only be created from “StateFlow” Graph.
  • This node is using Coroutine.

Examples

In this example, the Until Failure node is called at start. It then call ‘If’ node every frame until failure.

The ‘If’ node never failure until game time is more than or equal to 5.

Flow Graph:

Conclusion:

  • You can regularly call a node until the node failure.
  • When you build AI, use this node can help you AI to do something until specific condition is failure ex: attack player until die or not reachable.
Was this helpful to you?