How to call a Global Transition on a Playmaker FSM?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Digital Adam
Posts: 13
Joined: Fri Nov 01, 2024 2:56 pm

How to call a Global Transition on a Playmaker FSM?

Post 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!
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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)
Digital Adam
Posts: 13
Joined: Fri Nov 01, 2024 2:56 pm

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

Post by Digital Adam »

Perfect, thanks!
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply