playMaker

Author Topic: Send Event choose Fsm component to send to  (Read 2928 times)

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Send Event choose Fsm component to send to
« on: July 11, 2018, 10:49:09 AM »
On the "Send Event" and "Send Event By Name" actions would it be possible to add the option to choose the event target "Fsm Component" to send the event to?

Instead of only being able to drag an drop the Fsm Component.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Send Event choose Fsm component to send to
« Reply #1 on: July 14, 2018, 12:52:54 PM »
Hi.
You can do this when using gameobject fsm.

Best way if you need to be able to do this with multiple gameobects is to use arrays.

a gameobject array to select a gameobject, then a string array for the Fsm Name.
and optional even an array for the variable.

But it might be useful indeed like having an array with fsms.

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Send Event choose Fsm component to send to
« Reply #2 on: July 14, 2018, 05:13:33 PM »
Yeah i know how to set this up with gameobjects, i just think it would be useful to just reference the fsm as a variable seeing as you can already drag and drop.

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Send Event choose Fsm component to send to
« Reply #3 on: July 24, 2018, 03:30:52 PM »
Bump.

Would still like to know if this would be possible to add? Sending an event directly to a fsm component stored as a variable would be great.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Send Event choose Fsm component to send to
« Reply #4 on: July 25, 2018, 02:29:50 AM »
Hi,

 yes, Indeed this is not available. I'll raise the case, maybe it can be added in the current beta cycle.

Meanwhile, I made an custom action on the Ecosystem, where you can do that, the downside is that you need to input the event as a string.



 Bye,

 Jean

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Send Event choose Fsm component to send to
« Reply #5 on: July 25, 2018, 06:17:28 PM »
Thanks for the action jean, i actually went the other way and made a custom action to retrieve the gameObject the Fsm component resides on :P

Still hope this feature gets added in the future.