playMaker

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

Mupp

  • Junior Playmaker
  • **
  • Posts: 69
    • View Profile
Make a FSM run another FSM
« on: June 20, 2018, 07: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
    • View Profile
    • The Museum of Digital
Re: Make a FSM run another FSM
« Reply #1 on: June 20, 2018, 12:39:08 PM »
check if the fsm is active
true - send to empty state
false - activate chosen FSM

Mupp

  • Junior Playmaker
  • **
  • Posts: 69
    • View Profile
Re: Make a FSM run another FSM
« Reply #2 on: June 20, 2018, 01: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
    • View Profile
    • The Museum of Digital
Re: Make a FSM run another FSM
« Reply #3 on: June 20, 2018, 01: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

  • Junior Playmaker
  • **
  • Posts: 69
    • View Profile
Re: Make a FSM run another FSM
« Reply #4 on: June 20, 2018, 02:05:22 PM »
Right, thanks.