playMaker

Author Topic: [BUG?] Sending multiple events to specified FSM in a GameObject you just created  (Read 1510 times)

plinm

  • Playmaker Newbie
  • *
  • Posts: 25
Hi

I might reach a bug or something, here is what I did.

Create a gameobject from prefab and send multiple events to it with event target set to Game Object FSM (need input the name of the FSM), the target FSM will only receive the one event, and the event is not received at the same time as it sends.

If I change the event target to Game Object, then the problem is gone.

I have attached a test scene as well, need PlayMaker pre-installed.

Cheers

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Hi,
To create an Object takes "time"
So you need to add a "next frame event"
also you should enable "Action sequence" (right click in state window and select 1st option) on the 'Send Multiple Events'

The way it is set now it could send the events simultaneously and it might be received only once

if Action sequence is enable it will wait for each action to finish

plinm

  • Playmaker Newbie
  • *
  • Posts: 25
Hi,
To create an Object takes "time"
So you need to add a "next frame event"
also you should enable "Action sequence" (right click in state window and select 1st option) on the 'Send Multiple Events'

The way it is set now it could send the events simultaneously and it might be received only once

if Action sequence is enable it will wait for each action to finish

Hi

But the problem will disappear if I set the event target to the entire game object instead of specified FSM, without adding NextFrame action in between. That's why I thought it is a bug.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Hi,
np, it better to tell when you think its a bug then not to tell at all.