playMaker

Author Topic: broadcast all doesn't finish  (Read 1213 times)

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
broadcast all doesn't finish
« on: March 14, 2022, 07:17:26 AM »
Hi,

I'm actually facing something new in my setup,
by using Broadcast all event in my states, I usually  gain time not searching for the game object and use it when needed, and it was working nice until now, and I don't get why.
The problem is that it send the event normally but still stay in that state forever and lock the FSM, causing bugs in the logic of course.
For example, when a zombie's life reach 0, player gains a bonus before the zombies dies and exploded or something like that.
It should, but because it never ends the broadcast, it never goes down for other actions.
Sometimes it works, sometimes not...

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
Re: broadcast all doesn't finish
« Reply #1 on: March 14, 2022, 09:39:32 AM »
Well... it seems that I'm forced to use delay with a value greater than 0.
I don't really see why, I checked the script, and it refers to value < 0.001f
but I also tried using none, and I'm still getting this infinite loop on this action.

So to solve this, I only fund the option to not use 0 but .1 instead.

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
Re: broadcast all doesn't finish
« Reply #2 on: March 14, 2022, 10:24:43 AM »
Setting it to .1 didn't solve the problem

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: broadcast all doesn't finish
« Reply #3 on: March 15, 2022, 05:02:16 PM »
This is super weird, shouldn't be any problem,

by the way, are you using Project Settings/Editor/Enter Playmode Settings << enter play mode option unchecked?

cuz sometimes, it screwed up Playmaker.

Another I could think of is trying to disable GO that receives those receivers and see if it is still stuck, cuz It probably got nothing to do with the broadcast.
does it throw some console error?


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: broadcast all doesn't finish
« Reply #4 on: March 16, 2022, 04:11:58 PM »
Hi.
if its infinite loop, try to figure out why it keeps looping.
also to prevent infinite loop error you can use a next frame event between one of the states.

but broadcasting every frame is not good