Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: szomaza on November 20, 2014, 01:37:24 AM
-
Set Event Data and Get Event Info are 2 actions I just came across.
https://hutonggames.fogbugz.com/default.asp?W531
https://hutonggames.fogbugz.com/default.asp?W530
I have been using another method:
1. set the required target FSM's variable(s),
2. then send an event to the target FSM to do something with those variable(s) set right before.
If I understand correctly?
1. Set Event Data
2. then Broadcast event
3. then Get Event Info in the target(s) FSM(s) you can do the same a bit more elegantly.
Is this right?
Which approach is better?
I would also appreciate some more explanation and use cases for the other actions in the StateMachine category. Some of them are gray areas still, but they seem like very powerful "allies" when used skilfully.
Thanks in advance,
szomaza
-
"Broadcast Event" action is missing:
https://hutonggames.fogbugz.com/default.asp?W493
Has that been removed?
Obsolete?
There is a broadcast capability in the "Send Event" action, but the "Exclude Self" checkbox is not explained there:
https://hutonggames.fogbugz.com/default.asp?W34
And Exclude Self does not seem to work in the Send Event action.
Even when it is ticked another FSM on the same object receives the message.
br,
szomaza
-
And Exclude Self does not seem to work in the Send Event action.
Even when it is ticked another FSM on the same object receives the message.
I'm pretty sure that's the intended behavior of 'exclude self'. It's certainly how I'm using it.
I'm not sure if anything ever came of this thread: http://hutonggames.com/playmakerforum/index.php?topic=7849.0 , but a cursory search of the forums didn't turn up anything.
You could always make a post about it on the Action Requests board.
-
Thanks for the info. That makes sense.
I thought it would exclude the whole game object not just that one FSM. Unfortunately I would need it to exclude the whole object.
Br,
szomaza