playMaker

Author Topic: Broadcast All Send Events triggering twice  (Read 2537 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
Broadcast All Send Events triggering twice
« on: January 22, 2014, 09:33:28 PM »
This has been driving me crazy recently, trying to track it down.

Basically, I have a gameobject, and when it reaches a death state, it sends a Broadcast All Event to another object that uses that broadcast to update a float which is the total objects alive.

16 identical gameobjects, and all of them would die and update the count accurately every time - except one. This one would cause 2 to be subtracted.

The only difference was that the Broadcast All Send Event was on a state that was set as an Action Sequence. (this action was at the bottom).

After making this one change - to stop it being an action sequence, I rebuilt and it worked perfectly, sending the event only once, and subtracting 1.

Is there a known problem here?

Noticing this has made me thing more about another bug I encountered the other day and spent 2 hours trying to track down. It might not appear to be wrong, but I'll check all of the related events and make sure they're not action sequences, or delete and recreate them just to make sure.

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Broadcast All Send Events triggering twice
« Reply #1 on: January 22, 2014, 10:07:26 PM »
Ah, this would seem to be the same as this one below:

http://hutonggames.com/playmakerforum/index.php?topic=6007.0