Hi,
Is it possible to create an event that can be used anywhere
say the event you want to send is "MYEVENT"
you'll need to create an event "MYEVENT" in each fsm you want to catch that event. Then you create a State and add a Global Transition to it and you select "MYEVENT" from the list. that's you wired in that fsm to start acting upon this event.
Then you can either trigger that event to a specific fsm using
https://hutonggames.fogbugz.com/default.asp?W35or you can broadcast to all fsm in the scene using:
https://hutonggames.fogbugz.com/default.asp?W493and is automatically occurring in the background?
The catch is that for a given Fsm, There can be only one active state at a time. So be aware of this, if you don't want to break your process for a given fsm, create a another one that will catch that event and do your background stuff there. As far as responding to event, nothing can occur in the background on a given fsm. that's why if you create two, it effectively gives you the ability to run two fsm process on the same gameobject. That's how you run things in the background with playmaker ( correct me if I am wrong here).
now for your ON_ENTER_TRIGGER continously checking, there is several ways to do that.
-- Either you use the built event ( COLLISION ENTER or TRIGGER ENTER ) they will occur anytime there is a collision or trigger happening on that GameObject.
-- use an idle State and add the following action:
https://hutonggames.fogbugz.com/default.asp?W30or
https://hutonggames.fogbugz.com/default.asp?W37They both give you more control. And from there you can trigger any of your custom event.
If there is anything blurred or that needs clarificiation, don't hesitate.
Bye,
Jean