Hi!
Another question regarding UFPS!
I agree with Jean in
http://hutonggames.com/playmakerforum/index.php?topic=4395.msg21267#msg21267That 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.
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