Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: terrorOfNewDelhi on January 26, 2015, 02:58:50 AM

Title: Using "Set Event Data" and "Get event info" to pass multiple variables [SOLVED]
Post by: terrorOfNewDelhi on January 26, 2015, 02:58:50 AM
Hi,

I'd been happily using "Set FSM Variable" to pass values to other FSMs when I am invoking another behaviour or passing data between FSMs as part of an event.
However, I read on the Wiki that it is better practice to use "Set Event Data" and "Get event info" so that the FSMs can be more blind to each other's inner workings.

My question is: can "Set Event Data" and "Get event info" be used to pass multiple variables (of the same kind)? I can't see any way to do this.
For example, if my player is shot perhaps I might want to pass Damage and Force (both as floats) to the "Hit" FSM.

It appears to me that this isn't possible. Could you please advise me, and if it's not possible, is using "Set FSM Variable" followed by sending the event the best method?

Thanks
Brendan
Title: Re: Using "Set Event Data" and "Get event info" to pass multiple variables
Post by: jeanfabre on March 03, 2015, 12:33:25 AM
Hi,

 yep, check this:

http://hutonggames.com/playmakerforum/index.php?topic=4296.msg21612#msg21612

 Bye,

 Jean
Title: Re: Using "Set Event Data" and "Get event info" to pass multiple variables
Post by: terrorOfNewDelhi on March 03, 2015, 02:39:44 AM
Thanks for the reply Jean. I stumbled across these actions just a few days ago - forgot to update this post.
It works well, thanks again for getting around to replying.