i have a state that has an action calculating something. calculation updates blackboard. this state has some transitions that uses blackboard values calculated by the same action. as i understand transitions run immediately. is it possible that transition run just after calculation sets an blackboard property? in that case will FSM stop action? what i need is to complete action and run transitions after calculation ends. how can i guarantee that without using 2 states?
The transitions of a state are checked continuesly while the state is active. As soon as the condition assigned is true, the transition will take place and as a result the state will of course exit.
So if you have a transition condition that for example checks if boolean variable is set to true, as soon as the state action sets that bool variable to true, the transition will happen.
Why not just set that variable at the end of the action?
Unless I misunderstood something 🙂
i set more than one variable 🙂 i added second state. it works like that 🙂
you should add option like dynamic condition. check always or check on all actions completed. or i can use send event in that case like i did with playmaker.
by the way, i love node canvas because always there is a solution. it is not so important to add one state more. i can easily write my custom actions and conditions and can solve my problems very fast.
The default behaviour now, is that a transition’s condotion is checked on update even while the actions are running.
So I could add an option on the transitions to check the assigned condition only when the state has finished.
I’ll see what I can do about it, since when a state is finished, a transition without condition takes place
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.