playMaker

Author Topic: Is there a enable/disable multiple FSM action?  (Read 3417 times)

beowulfkaine

  • Playmaker Newbie
  • *
  • Posts: 47
Is there a enable/disable multiple FSM action?
« on: May 08, 2017, 09:24:47 PM »
I'd like to be able to enable and disable fsms from the same action if possible, is there anything like that around?

velketor

  • Junior Playmaker
  • **
  • Posts: 69
  • Multimedia Marathon Man
    • Shawn Kilian Portfolio
Re: Is there a enable/disable multiple FSM action?
« Reply #1 on: May 09, 2017, 07:42:03 PM »
I have been able to Enable/Disable multiple FSM's in the same action by adding a "Find GameObject" action and having it search by tag right before every "Enable/Disable FSM" action.  If you don't add the "Find GameObject" action and search by tag BEFORE you add the next "Enable/Disable FSM" action, PlayMaker will only Enable/Disable the first FSM it finds.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Is there a enable/disable multiple FSM action?
« Reply #2 on: May 10, 2017, 04:51:13 PM »
Hi,
You should avoid using "find gameobject" it uses a lot of resources (cpu)
you can place gameobject's into arrays.

To enable/disable multiple fsm you should also use arrays,

I made a quick video to show you how to :)