playMaker

Author Topic: Best way to disable/enable FSMs  (Read 1002 times)

galenino

  • Playmaker Newbie
  • *
  • Posts: 3
Best way to disable/enable FSMs
« on: June 14, 2021, 06:39:16 AM »
Hi!

I'm building a networked game and therefore want to make sure that the FSMs only run after network is set up and ready, what would be the best way to do this? Is there a global enabled/disabled bool or can I do it individually for each FSM in the scene?

...

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
Re: Best way to disable/enable FSMs
« Reply #1 on: June 14, 2021, 11:00:15 AM »
Put them in the array, iterate and disable them one by one.
« Last Edit: June 14, 2021, 02:47:32 PM by Fat Pug Studio »

galenino

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Best way to disable/enable FSMs
« Reply #2 on: June 15, 2021, 04:03:59 AM »
Ok, thanks!