Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
Help plz :)
-
(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!
-
Well, it is a warning, do you have a Deactivate event in that state?
-
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
-
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?
-
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
-
Ah I see. Yeah a string event would work fine!
-
Hi,
ok, done please redownload, you have now ArrayListSendStringEventToGameObjects
Let me know how it goes,
Bye,
Jean