playMaker

Author Topic: How to add a FSM/FSM Template from an array at runtime.  (Read 1717 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
How to add a FSM/FSM Template from an array at runtime.
« 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,

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to add a FSM/FSM Template from an array at runtime.
« Reply #1 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

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: How to add a FSM/FSM Template from an array at runtime.
« Reply #2 on: February 16, 2018, 03:23:55 AM »
I'll give it a shot.

Thanks Jean