Reply To: Bug: Check C# Event doesn't work when FSM not running every frame

NodeCanvas Forums General Discussion Bug: Check C# Event doesn't work when FSM not running every frame Reply To: Bug: Check C# Event doesn't work when FSM not running every frame

#14712
Gavalakis
Keymaster

Hello there,

Thanks! I am glad you like v3 🙂

Regarding your question/issue, indeed, certain event-based conditions (most of them really), only return true for one frame due to YieldReturn method. This was really made so by design, because I remember that latching the result and only “consuming” it after the condition is evaluated created some other implications. Having your FSMs evaluate every X seconds may or may not achieve what you want depending on how you implemented the “every X seconds update”. May I ask why you want to do this though? Is it a performance concern, or something entirely different? Because if it is a performance concern, the updating of an FSM is honestly very fast (unless of course the actions within it do some heavy lifting).

Let me know 🙂

Join us on Discord: https://discord.gg/97q2Rjh