FlaxEngine / FlaxEngine/FlaxEngine

Behavior don't restart Logic after returning result to Root

Open
#2,071 2 comments 0 reactions 0 assignees View on GitHub
ai
Dominant language
C++
Stars
7k
Forks
713
Avg merge
7d 11h
Merged PRs (30d)
19

Description

Behavior don't restart Logic after returning result to Root.
Behavior logic stops when it gives result to Root.
Expected was a restart with Knowledge intact after deliver result to Root as this is how it is implemented in other engines and also align with the design pattern.

Steps to reproduce:
Add behavior tree with delay node

Two workarounds:
1. In first node after root add decorators "Force Success" and "Loop" with infinite checkmark. See attached image.
2. Use the Finished event to call StartLogic(). Note that StartLogic() resets Knowledge, so seems like ResetLogic()

**Flax version:**
1.7.6406.1

![AG-Workaround](https://github.com/FlaxEngine/FlaxEngine/assets/53795477/a2780e5a-f166-4ad9-916e-66a91f62908f)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.