playMaker

Author Topic: Connecting scripts and receiving value  (Read 2477 times)

ryf9059

  • Full Member
  • ***
  • Posts: 100
Connecting scripts and receiving value
« on: June 07, 2013, 02:56:15 AM »
I have problem using the connecting script feature.

I watched the tutorial, but it doesn't say what to do if the function have more than 2 parameters, it only demonstrate the case with a single parameter.

Also I want to know how to get a return value from a function inside FSM.

Please advise.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Connecting scripts and receiving value
« Reply #1 on: June 07, 2013, 03:03:53 AM »
Hi,

You'll need to write a custom action for this, when you want to access complex methods that invoke and SendMessage can't.

bye,

 Jean

ryf9059

  • Full Member
  • ***
  • Posts: 100
Re: Connecting scripts and receiving value
« Reply #2 on: June 07, 2013, 03:27:55 AM »
You'll need to write a custom action for this, when you want to access complex methods that invoke and SendMessage can't.

Any tutorial for how to write custom actions like this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Connecting scripts and receiving value
« Reply #3 on: June 07, 2013, 05:06:05 AM »
Hi,

The best way is to open existing actions ( they are all open sources). the thing with giving a tutorial on creating custom actions is problematic, because if you do have scripting skills, writing custom actions is nothing but a few copy paste, so I am still unsure about how to approach such tutorial if I where to write one.

bye,

 Jean