Reply To: FSM simple question

NodeCanvas Forums General Discussion FSM simple question Reply To: FSM simple question

#8948
Matt Newcombe
Participant

An approach would be to make the state a behaviour sub tree.

The sub-tree contains a sequencer with your action nodes, followed by your condition node, and fails on condition.This will achieve the Repetition.

On the state itself specify the Success Event parameter, use the Check Event condition to your next state. Now when your original state ends up passing the probability condition, the success event fires, and your FSM transitions.

This is how I would solve it, though there may be simpler ways.