Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nightcorelv on January 02, 2018, 08:28:34 AM

Title: [SOLVED]do i need remove fsm after using "run fsm"?
Post by: nightcorelv 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?
Title: Re: do i need remove fsm after using "run fsm"?
Post by: LordHorusNL 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.
Title: Re: do i need remove fsm after using "run fsm"?
Post by: nightcorelv 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.