playMaker

Author Topic: [SOLVED]do i need remove fsm after using "run fsm"?  (Read 1910 times)

nightcorelv

  • Playmaker Newbie
  • *
  • Posts: 27
[SOLVED]do i need remove fsm after using "run fsm"?
« on: January 02, 2018, 08:28:34 AM »
Hi
I only know that run fsm creates a fsm and runs it, but I want to know how "run fsm" works, for example, do I need to destroy it to get better performance? Or will it destroy itself then it moves to the next state?
« Last Edit: January 02, 2018, 01:48:55 PM by nightcorelv »

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: do i need remove fsm after using "run fsm"?
« Reply #1 on: January 02, 2018, 10:37:45 AM »
When running a template with "Run FSM" you just need to add the "Finish FSM" action in the last state of your template.

This will end the template and will allow the hosting Fsm to transition to the next state.

Remember that the template you run will only be active when you are in the state with the Run FSM action.

Hope that helps.

nightcorelv

  • Playmaker Newbie
  • *
  • Posts: 27
Re: do i need remove fsm after using "run fsm"?
« Reply #2 on: January 02, 2018, 01:48:34 PM »
Thanks for the reply, this is what I want to know.
When running a template with "Run FSM" you just need to add the "Finish FSM" action in the last state of your template.

This will end the template and will allow the hosting Fsm to transition to the next state.

Remember that the template you run will only be active when you are in the state with the Run FSM action.

Hope that helps.