playMaker

Author Topic: One FSM updates all of the same type FSM in scene?  (Read 1730 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
One FSM updates all of the same type FSM in scene?
« on: August 02, 2015, 10:15:57 PM »
Can you have an FSM like a prefab so if you update it, all other of the same fsms in the scene will auto update? I try to have a manager if several game objects need the same fsm. But sometimes it seems the easiest just to have a list of game objects all use the same fsm. If I make a change i need to go manually through and delete old fsm for every object and copy paste new updated fsm. How can I simplify this? Please help. Let me know if this is a confusing question. Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: One FSM updates all of the same type FSM in scene?
« Reply #1 on: August 03, 2015, 03:04:05 AM »
Hi,
i think you can do it like this :

right click inside your fsm and "save template"

then on the other object add an "playmaker fsm script" (fsm)
and you can set your template @ use template

after you did that, on the original also set your template,

because if you change something in the original file it won't change the template and if you use safe template again it will break the connections on the other fsm's and you need to direct them again to the templates.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: One FSM updates all of the same type FSM in scene? [SOLVED]
« Reply #2 on: August 03, 2015, 06:22:35 PM »
Perfect solution!  ;D