Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JieAlan on April 21, 2013, 05:13:00 AM

Title: how can I Accessing the function in Other script
Post by: JieAlan on April 21, 2013, 05:13:00 AM
I wanna do this,but how,playmaker only has the action "add script"
Title: Re: how can I Accessing the function in Other script
Post by: Mayhem on April 21, 2013, 05:39:17 AM
You could use thse actions:

- Send Message
- Invoke Method

:)
Title: Re: how can I Accessing the function in Other script
Post by: JieAlan 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
Title: Re: how can I Accessing the function in Other script
Post by: jeanfabre 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