Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: LordHorusNL on July 11, 2018, 10:49:09 AM

Title: Send Event choose Fsm component to send to
Post by: LordHorusNL 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.
Title: Re: Send Event choose Fsm component to send to
Post by: djaydino 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.
Title: Re: Send Event choose Fsm component to send to
Post by: LordHorusNL 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.
Title: Re: Send Event choose Fsm component to send to
Post by: LordHorusNL 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.
Title: Re: Send Event choose Fsm component to send to
Post by: jeanfabre 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.

(https://i.imgur.com/2ImzFW7.png)

 Bye,

 Jean
Title: Re: Send Event choose Fsm component to send to
Post by: LordHorusNL 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.