playMaker

Author Topic: Can Run FSM run in the background?  (Read 642 times)

Twood

  • Junior Playmaker
  • **
  • Posts: 76
Can Run FSM run in the background?
« on: September 20, 2021, 12:43:33 AM »
Just was messing with templates and Run FSM, and the part that was a bit less effective to me is it seems the only way to use it is waiting for it to finish before you can carry on. Unless I missed something? Would be pretty cool for some things if it could run in the background.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Can Run FSM run in the background?
« Reply #1 on: September 20, 2021, 10:52:00 AM »
Hi.
As long as the state with the run fsm is active it can keep running.

if you can't stay in that state then its probably better to use a separate fsm

Twood

  • Junior Playmaker
  • **
  • Posts: 76
Re: Can Run FSM run in the background?
« Reply #2 on: September 20, 2021, 01:13:58 PM »
No I mean more like is there a way to use templates as self-destroying background scripts doing their own thing rather than things that pause the current state machine until they finish.

Obviously you can use separate FSMs but trying to get away from some of the clutter.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Can Run FSM run in the background?
« Reply #3 on: September 20, 2021, 05:16:13 PM »
Hi.
You could make prefabs.

in c# you would also still have the script on a object :)