Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: beowulfkaine on May 08, 2017, 09:24:47 PM

Title: Is there a enable/disable multiple FSM action?
Post by: beowulfkaine 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?
Title: Re: Is there a enable/disable multiple FSM action?
Post by: velketor 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.
Title: Re: Is there a enable/disable multiple FSM action?
Post by: djaydino 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 :)