playMaker

Author Topic: Make a FSM run another FSM  (Read 1693 times)

Mupp

  • Full Member
  • ***
  • Posts: 167
Make a FSM run another FSM
« on: June 20, 2018, 10:49:45 AM »
I want a FSM to start and run an other FSM, but if that FSM is already running I want nothing to happen.
How can I do this?

verybinary

  • Junior Playmaker
  • **
  • Posts: 81
    • The Museum of Digital
Re: Make a FSM run another FSM
« Reply #1 on: June 20, 2018, 03:39:08 PM »
check if the fsm is active
true - send to empty state
false - activate chosen FSM

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: Make a FSM run another FSM
« Reply #2 on: June 20, 2018, 04:27:48 PM »
Thanks, but there is no such action by default. Found one on Eco though.

Will an already active FSM reset or do something bad if you activate it?

verybinary

  • Junior Playmaker
  • **
  • Posts: 81
    • The Museum of Digital
Re: Make a FSM run another FSM
« Reply #3 on: June 20, 2018, 04:33:11 PM »
it shouldn't. if its already activated, and inside a state, activating the object that holds the fsm shouldn't affect anything, but I haven't tried it.
but you can. half the fun of playmaker is trying stuff just to see if it breaks.
back up and give it a shot

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: Make a FSM run another FSM
« Reply #4 on: June 20, 2018, 05:05:22 PM »
Right, thanks.