playMaker

Author Topic: How to Receive Message from an external event  (Read 654 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
How to Receive Message from an external event
« on: May 29, 2018, 04:45:48 PM »
Hi,

i have a plugin that has still not support PlayMaker, so i still find a way to retrieve its event.

They just provide an event register like below :


(to get Page Data)

and like below (to get vector2 data)



but after i set target to my PlayMaker Object, i got this error :



i dont know how to setup receiver on PlayMaker...

any idea ?



note : the purpose of this task, i want to create page-swipe (like ebook). if any alternative solution using playmaker, i appreciate and thanks
« Last Edit: May 29, 2018, 07:15:17 PM by rainexplorer »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14244
  • Official Playmaker Support
    • View Profile
Re: How to Receive Message from an external event
« Reply #1 on: May 29, 2018, 11:20:26 PM »
Hi,

- you can add an event that target a PlayMakerFsm Component and send an event from there.



- If you have PlayMaker Utils, there is a wizard to create a component that features a public method ad will send an playmaker event as a result:

Menu PlayMaker/Addons/Tools/Event Proxy Wizard

Bye,

 Jean


rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
Re: How to Receive Message from an external event
« Reply #2 on: May 30, 2018, 12:06:50 AM »
Hi, thanks but if they send event with data. How i capture that data?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14244
  • Official Playmaker Support
    • View Profile
Re: How to Receive Message from an external event
« Reply #3 on: May 30, 2018, 12:10:17 AM »
Hi,

then, you should use the event proxy wizard and edit it to accept the data and forward it to the playmaker eventdata before sending the playmaker event.

 what is the data? I'll do a quick example to show you how to do it.

 Bye,

 Jean

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
Re: How to Receive Message from an external event
« Reply #4 on: May 30, 2018, 12:41:41 AM »
Hi,

then, you should use the event proxy wizard and edit it to accept the data and forward it to the playmaker eventdata before sending the playmaker event.

 what is the data? I'll do a quick example to show you how to do it.

 Bye,

 Jean

Example of Data is Vector2...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14244
  • Official Playmaker Support
    • View Profile
Re: How to Receive Message from an external event
« Reply #5 on: June 11, 2018, 03:37:42 AM »
Hi,

 ok, can you get the package again from the Ecosystem, I have modified the wizard to let you add a paramter, so simply select Vector2, save changes and your proxy method will now have a vector2 param :)

 Let me know how it goes.

 Bye,

 Jean