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
Login
Register
By registering on this website you agree to our Privacy Policy.