playMaker

Author Topic: Using "Set Event Data" and "Get event info" to pass multiple variables [SOLVED]  (Read 872 times)

terrorOfNewDelhi

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
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
« Last Edit: March 03, 2015, 12:40:46 AM by terrorOfNewDelhi »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13889
  • Official Playmaker Support
    • View Profile

terrorOfNewDelhi

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
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.