playMaker

Author Topic: SimpleSwitch UFPS Intergration  (Read 2536 times)

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
SimpleSwitch UFPS Intergration
« on: November 27, 2013, 08:16:35 AM »
Hi!

Another question regarding UFPS!

I agree with Jean in http://hutonggames.com/playmakerforum/index.php?topic=4395.msg21267#msg21267

That UFPS is a very powerful beast. And that is why I have started to use it. Many of the things I was implementing in PlayMaker are already done, so Im in the process of turning lots over to that system, so as to not "reinvent the wheel".

For places that I need functionality that is NOT handled by the system, I want to use the UFPS system to trigger something I might do in PlayMaker.

For this I would want to use the most generic "Interactables" in UFPS. This has a function called Send Message. Where you select a game object to receive a message, and a message to send.

I inquired at the UFPS forum how one would do this. This one technique could pretty much be the key for me to get everything done!

Ill quote his entire reply. Its useful in that he appears to think its trivial. But of course, I dont quite know what he means I should do at the PlayMaker, end, maybe he doesnt either.

Quote
Sendmessage. That's a way of calling methods on "other" gameobjects. Get a reference to the "gameobject" and the rest is straight forward. "Target" in vp_Switch would be your Playmaker target object that understands the message.
http://docs.unity3d.com/Documentation/ScriptReference/GameObject.SendMessage.html

Does PlayMaker have such a "message" thingy? It seems to be a standard Unity thing, so Im kind of assuming it does.

Cheers

Mark

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SimpleSwitch UFPS Intergration
« Reply #1 on: November 28, 2013, 02:02:40 AM »
Hi,

 Yes, the action is simply called "SendMessage".

 Bye,

 Jean

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Re: SimpleSwitch UFPS Intergration
« Reply #2 on: November 28, 2013, 05:49:14 AM »
Yes, but How can playmaker RECEIVE such a message? It would be UFPS doing the sending. How will that message be recieved in Playmaker so I can use an interaction in UFPS to trigger stuff in PlayMaker?


:)

Mark

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SimpleSwitch UFPS Intergration
« Reply #3 on: November 28, 2013, 06:00:15 AM »
Hi,

 Ok, I see. for this you would use the following broker:

http://hutonggames.com/playmakerforum/index.php?topic=2437.msg10933#msg10933

basically, it will accept a particular message and you will be able to then transform it as a playmaker event. You would send "messageBroker" exactly to thet broker and done.

Bye,

 Jean