playMaker

Author Topic: ArrayListSendEvent to GameObject Red Text  (Read 2150 times)

Aislin

  • Playmaker Newbie
  • *
  • Posts: 6
ArrayListSendEvent to GameObject Red Text
« 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?

Aislin

  • Playmaker Newbie
  • *
  • Posts: 6
Re: ArrayListSendEvent to GameObject Red Text
« Reply #1 on: December 29, 2018, 08:20:46 AM »
Help plz :)

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: ArrayListSendEvent to GameObject Red Text
« Reply #2 on: October 03, 2019, 04:00:04 PM »


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!

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: ArrayListSendEvent to GameObject Red Text
« Reply #3 on: October 04, 2019, 03:40:50 AM »
Well, it is a warning, do you have a Deactivate event in that state?
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayListSendEvent to GameObject Red Text
« Reply #4 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

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: ArrayListSendEvent to GameObject Red Text
« Reply #5 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayListSendEvent to GameObject Red Text
« Reply #6 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

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: ArrayListSendEvent to GameObject Red Text
« Reply #7 on: October 17, 2019, 02:28:59 PM »
Ah I see. Yeah a string event would work fine!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayListSendEvent to GameObject Red Text
« Reply #8 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