Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Aislin on December 21, 2018, 04:08:27 PM

Title: ArrayListSendEvent to GameObject Red Text
Post by: Aislin on December 21, 2018, 04:08:27 PM
Hello!

Whenever I use the ArrayListSendEventToGameObjects Action, I get red text saying [Event not used by this state or any global transition!]. I read in another post that I could put

public FsmEventTarget dummyEventTarget = new FsmEventTarget();

In the action, which I did, but that isn't getting rid of that red error text. Is there another way to make this red error text go away?
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: Aislin on December 29, 2018, 08:20:46 AM
Help plz :)
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: SeanC on October 03, 2019, 04:00:04 PM
(https://i.imgur.com/tANjB3R.png)

I am having this same issue. I thought maybe selecting the checkbox for "Exclude Self" would work but it didn't. Does anyone know what I need to edit in the script to fix this? Thanks in advance!
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: Fat Pug Studio on October 04, 2019, 03:40:50 AM
Well, it is a warning, do you have a Deactivate event in that state?
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: jeanfabre on October 04, 2019, 10:53:55 AM
Hi,

 yes, turn that event into a global event, it is a requirement from PLayMaker that event sent from other fsm have to be global, local event can only be sent within its fsm where it's declared.  It is just a convention, it will work as is, but the warning is annoying, I give you that.

Bye,

 Jean
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: SeanC on October 04, 2019, 06:18:51 PM
Hi all,

The event already is a global event and I'm still getting the warning. Would someone else mind recreating and see if they get the same results?
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: jeanfabre on October 09, 2019, 02:38:36 AM
Hi,

 ahh, I know, I remember now, this is a limitation unfortunatly, PlayMaker does not allow referencing an fsmEvent without a FsmEventTarget field, which in this case does not make sense...

I'll ping Alex on this, I mentionned it, maybe we can do something about this.

 what I can propose is a version of that action that use a string as the event, so it reference events by name instead, then you won't get the error.

Bye,

 Jean
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: SeanC on October 17, 2019, 02:28:59 PM
Ah I see. Yeah a string event would work fine!
Title: Re: ArrayListSendEvent to GameObject Red Text
Post by: jeanfabre on October 18, 2019, 05:08:35 AM
Hi,

 ok, done please redownload, you have now ArrayListSendStringEventToGameObjects

Let me know how it goes,

Bye,

 Jean