Transition

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9393
    atmuc
    Participant

    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?

    #9399
    Gavalakis
    Keymaster

    Hello atmuc,

    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 🙂

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

    #9398
    atmuc
    Participant

    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.

    #9397
    atmuc
    Participant

    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.

    #9396
    Gavalakis
    Keymaster

    Glad to know that 🙂

    What do you mean by dynamic transition conidtion? I did not understand that

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

    #9395
    atmuc
    Participant

    dynamic mean check condition always(on all unity update call). non dynamic means check condition after all actions completed.

    #9394
    Gavalakis
    Keymaster

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.