playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Calling global events from C#[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Calling global events from C#[SOLVED] (Read 2730 times)
mathius777
Playmaker Newbie
Posts: 38
Calling global events from C#[SOLVED]
«
on:
February 17, 2014, 06:28:22 PM »
Is it possible to call a global event from C#? You can access global variables in this way, but I don't see a way to call a global event. Thanks.
«
Last Edit: February 17, 2014, 11:46:57 PM by jeanfabre
»
Logged
mathius777
Playmaker Newbie
Posts: 38
Re: Calling global events from C#
«
Reply #1 on:
February 17, 2014, 09:04:51 PM »
Figured it out:
Code:
[Select]
PlayMakerFSM.BroadcastEvent(FsmEvent.FindEvent("YourGlobalEventName"));
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Calling global events from C#
«
Reply #2 on:
February 17, 2014, 11:46:44 PM »
Hi,
uhm, nice I did not know about the FindEvent() call! Very cool, I'll keep that in mind.
bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Calling global events from C#[SOLVED]