Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: coxy17 on February 10, 2017, 06:45:27 AM
-
Hi
I am using the EnableFSM in the playmaker actions to enable/disable based on manually targeting a FSM. Is there a way to do this for all child objects of the parent too?
https://hutonggames.fogbugz.com/default.asp?W55 (https://hutonggames.fogbugz.com/default.asp?W55)
Nick
-
Use Get Child Next, and in a loop state just do Set Property or EnableFSM on the FSM component of loop game object. That will enable or disable the FSM on all child objects of a x parent object.
-
Hi
Thanks didnt see that obvious option haha, was thinking i would have to script it up. Am i guessing right in saying that if one of the child objects has a 2nd FSM it wouldnt detect it?
Nick
-
I didn't test it, but I would assume that yes you are correct. Although this is possible, you would have to modify the action or add a new one.
-
ok i could never find a script on the Ecosystem so now I have adapted the script and it works great now.