playMaker

Author Topic: Convert to Playmaker  (Read 2529 times)

kalasjnikov

  • Playmaker Newbie
  • *
  • Posts: 3
Convert to Playmaker
« on: December 07, 2012, 04:03:14 AM »
Hi all, first post here!

I have a neat camerascript that i've dowloaded from unify. Made some minor tweaks. Im a complete idiot when it comes to scripting but I need some help to add the essential scripting for it to run with unity. I've tried but fails miserably. :)
Tried "sendmessage" but nothing happens...

I have attached the script so if you could, just let me know what to do here.

//Hasse Smith
« Last Edit: December 07, 2012, 04:12:22 AM by kalasjnikov »

kalasjnikov

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Convert to Playmaker
« Reply #1 on: December 08, 2012, 04:49:12 PM »
Bump!

zenman

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Convert to Playmaker
« Reply #2 on: December 08, 2012, 06:02:01 PM »
What exactly are you trying to do? It seems to work fine. You did set did set the target to the object you're tracking. Make sure you set Max distance.

kalasjnikov

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Convert to Playmaker
« Reply #3 on: December 10, 2012, 09:01:18 AM »
Hi and thanks for your reply! :)

Well, the script works fine i Unity as it is. But I need it to be converted to a action in Playmaker, to work like for example mouselook.

I watched a tutorial were you supposed to use "sendmessage" to call external scripts in to playmaker. But nothing happens when im doing this.

So i guess some code needs to be added into the script so it works with PM.

//Cheers :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert to Playmaker
« Reply #4 on: December 11, 2012, 05:20:49 AM »
Hi,

 I am not sure what you want to send Message too. Can you explain your scenario? like do you want to enable/disable this camera system somehow? or remote control it from playmaker? or get feedback within playmaker?

bye,

 Jean