Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Murcho on October 11, 2011, 07:21:52 PM
-
Is there an easy way to access Global Variables through the scripting interface? I've setup scripts before to access Variables located in specific FSMs, but haven't been able to work out how to access the Glopal Variables.
-
Use: FsmVariables.GlobalVariables to get the global FsmVariables.
For example:
var globalVariables = FsmVariables.GlobalVariables;
var numLives = globalVariables.GetFsmInt("numLives");
Away from my computer, so haven't tested, but that should work...
-
Did this work for you?