I am building an AI behavior tree and want to add a way to pause it at any moment, then resume it later. When resuming, I don’t want the tree to start over from the beginning. Instead, I want it to continue from where it was paused.
For example, if the AI is moving from point A to point B, I want to pause it at a specific position X (timing). Later, I want the AI to resume from that same position and continue moving to point B.
The pause function should not be part of the behavior tree itself. Instead, it should be triggered by an external event at any time.
I am not a native English speaker, so my explanation might not be clear. I’m asking here because there isn’t much information available in my native language. If something is unclear, please feel free to ask me for clarification.
Thank you