playMaker

Author Topic: How to set a variable value to several fsms?  (Read 2005 times)

Rockstarfreak

  • Playmaker Newbie
  • *
  • Posts: 10
How to set a variable value to several fsms?
« on: September 06, 2016, 02:48:18 PM »
I know global events... but I have 750 objects with the same fsm name and the same variable names and the same game object name. Is there any possibility to set a variable value to all fsms with the same name in an game object with the same name as all others?

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: How to set a variable value to several fsms?
« Reply #1 on: September 06, 2016, 05:51:18 PM »
Add them all to an Array or Array list and iterate through them with an Array/List get next action and set the variable
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Rockstarfreak

  • Playmaker Newbie
  • *
  • Posts: 10
Re: How to set a variable value to several fsms?
« Reply #2 on: September 15, 2016, 12:36:26 PM »
Add them all to an Array or Array list and iterate through them with an Array/List get next action and set the variable

Thank you very much works fine for me.