playMaker

Author Topic: Dynamically change FSM throughout Prefabs  (Read 328 times)

Christoph

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
    • View Profile
Dynamically change FSM throughout Prefabs
« on: July 29, 2021, 06:48:48 PM »
I'm building my levels with prefabs, sometimes complete levels, sometimes level sections and when I need them I simply spawn them.

Anyhow, I have some logic attached to each level prefab that does some needed stuff at a given moment and I trigger it through global events after spawning them. Each level is different, but the FSM on it is the same.

I built now 100 levels and have to change something in the logic of my FSM attached to these prefabs. If it was a C# script I simply would change the code in it and it automatically would be updated on all 100 prefabs. How is this possible with Playmaker FSMs though?

Templates seem not to work because they don't update dynamically either. This has me confused as hell and I'm surely missing the obvious here, right?

How can I dynamically change an FSM throughout several prefabs or how can I re-use FSMs by having only 1 Master FSM? What is the approach for this situation I'm sure many of you guys have resolved in your projects before.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6320
    • View Profile
    • jinxtergames
Re: Dynamically change FSM throughout Prefabs
« Reply #1 on: July 30, 2021, 08:15:44 AM »
Hi.
Have you tried Playmaker/Tools/Update Fsm
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

Christoph

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
    • View Profile
Re: Dynamically change FSM throughout Prefabs
« Reply #2 on: July 30, 2021, 10:48:23 AM »
No, what's it for?