playMaker

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

LordHorusNL

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Send Event choose Fsm component to send to
« on: July 11, 2018, 07: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: 3181
    • View Profile
    • jinxtergames
Re: Send Event choose Fsm component to send to
« Reply #1 on: July 14, 2018, 09:52:54 AM »
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

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Re: Send Event choose Fsm component to send to
« Reply #2 on: July 14, 2018, 02: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.