Page 1 of 1

How to call a Global Transition on a Playmaker FSM?

Posted: Thu Jan 23, 2025 4:09 pm
by Digital Adam
On my dialogue response node I would like to call a Global Transition on an FSM. For example, when I choose "Follow me", I would like the dialogue child node to say ok (which is set up), and then execute a Playmaker FSM. I just can't figure out how to use the Playmaker Lua Functions to select the FSM, then choose the "Follow" global transition. Any help would be appreciated!
https://pixelcrushers.com/dialogue_syst ... akerEvents

Thanks!

Re: How to call a Global Transition on a Playmaker FSM?

Posted: Thu Jan 23, 2025 5:27 pm
by Tony Li
Hi,

Let's say your FSM is on a GameObject named "Adam", and you want to invoke a Playmaker event named "Follow". Then use this sequencer command:

Code: Select all

FSMEvent(Follow, Adam)

Re: How to call a Global Transition on a Playmaker FSM?

Posted: Thu Jan 23, 2025 10:17 pm
by Digital Adam
Perfect, thanks!

Re: How to call a Global Transition on a Playmaker FSM?

Posted: Fri Jan 24, 2025 8:02 am
by Tony Li
Glad to help!