playMaker

Author Topic: how can I Accessing the function in Other script  (Read 2333 times)

JieAlan

  • Playmaker Newbie
  • *
  • Posts: 24
how can I Accessing the function in Other script
« on: April 21, 2013, 05:13:00 AM »
I wanna do this,but how,playmaker only has the action "add script"

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: how can I Accessing the function in Other script
« Reply #1 on: April 21, 2013, 05:39:17 AM »
You could use thse actions:

- Send Message
- Invoke Method

:)

JieAlan

  • Playmaker Newbie
  • *
  • Posts: 24
Re: how can I Accessing the function in Other script
« Reply #2 on: April 22, 2013, 02:00:39 AM »
thanks
yeah,I can use send message to do that,
but another problem now confused me,I invoked somthing in a script,
then ,
how can I send event in that script back to playmaker

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how can I Accessing the function in Other script
« Reply #3 on: April 23, 2013, 02:24:52 PM »
hi,

 you can use the playmaker api, to broadcast a global event:

Code: [Select]
PlayMakerFSM.BroadcastEvent("my global event");
Bye,

 Jean