Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: autumnboy on February 15, 2018, 07:43:26 AM

Title: How to add a FSM/FSM Template from an array at runtime.
Post by: autumnboy on February 15, 2018, 07:43:26 AM
Hi,
I'm trying to add an fsm template stored in an fsm array to an object at runtime.
The action Add FSM Template doesn't have an option to set an fsm template (playmaker fsm/object) variable.

I'm trying to avoid having to make a lot of states to load in individual fsms.

Any ideas on how I can do this?


Cheers,
Title: Re: How to add a FSM/FSM Template from an array at runtime.
Post by: jeanfabre on February 16, 2018, 01:40:23 AM
Hi,

 It's not really supported, but I made an action on the Ecosystem that can do that. But again, it's not the best for memory and stability. Use it at your own risk.

Search for RunTemplateFsm action

Bye,

 Jean
Title: Re: How to add a FSM/FSM Template from an array at runtime.
Post by: autumnboy on February 16, 2018, 03:23:55 AM
I'll give it a shot.

Thanks Jean