playMaker

Author Topic: ArrayList send Event To Game Objects  (Read 2451 times)

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
ArrayList send Event To Game Objects
« on: July 24, 2014, 05:14:29 AM »
Hi,

Action description is :
Send event to all the gameobjects within an arrayList

But this is like the event does not let me pick global event. I am only allowed to local event, or global event used locally.

Any tips ?

« Last Edit: July 24, 2014, 05:46:55 AM by vonpopov »

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: ArrayList send Event To Game Objects
« Reply #1 on: July 24, 2014, 12:55:59 PM »
As i am running out of time for my project, i manage to do it manually using a loop to read the arraylist, store gameobject into variable, and then send event to each one after one.

This work fine, but i am still curious about :
ArrayList send Event To Game Objects (which is supposed to do it by itself in one pass)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: ArrayList send Event To Game Objects
« Reply #2 on: July 29, 2014, 08:32:19 AM »
Hi,
 
Indeed, it actually doesn't work properly. Sorry about that I have made a new bug case to try to solve this issue properly.

 Meanwhile, either you define the Global event in your fsm directly, and then that's ok, it will find it, but that's lame, instead prefer sending manually like you do, it won't have any impact on perfs, this action is simply a more convenient approach.

 Hopefully, either Alex will have a trick for me to make this work, else it may be easier to do this with the next release.

 Bye,

 Jean

cybervaldez

  • Playmaker Newbie
  • *
  • Posts: 7
Re: ArrayList send Event To Game Objects
« Reply #3 on: January 26, 2015, 10:47:59 PM »
This happens to me too! No Global Events (and oddly it's not sending the event when I manually added the global event as mentioned in the previous post)
« Last Edit: January 26, 2015, 10:53:49 PM by cybervaldez »