Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Micktu on January 05, 2016, 07:39:19 AM

Title: Listen for a PlayMaker global event in a script
Post by: Micktu on January 05, 2016, 07:39:19 AM
Just as the subject says: how do you subscribe to a global event in a script?

So you don't have to create "proxy" FSM listeners/invokers.
Title: Re: Listen for a PlayMaker global event in a script
Post by: phannDOTde on January 06, 2016, 07:30:30 AM
You should check the basic Tutorials on the YT channel

1. right click on an state
2. add global transition

make sure your event is marked as a global event to be send between gameobjects
Title: Re: Listen for a PlayMaker global event in a script
Post by: Micktu on January 06, 2016, 07:32:38 AM
You should check the basic Tutorials on the YT channel

1. right click on an state
2. add global transition

make sure your event is marked as a global event to be send between gameobjects

That was not the question however - it's how to respond to PlayMaker events from MonoBehaviors and plain C# objects.
Title: Re: Listen for a PlayMaker global event in a script
Post by: phannDOTde on January 06, 2016, 12:09:09 PM
Oh sorry - misunderstood you. Can't help there sorry.