Global variables
Using global variables is a way for you to store arbitrary values in your game. They are useful for everything from tracking events in your game to keeping score.
Global variables are Variants.
To create a global variable use dollar sign ($) followed by the name of the variable.
$MyGlobalVariable = 1;
Internal variables
Internal variables work the same way global variables does but they are associated with individual objects. They can be used to keep track of an object's state or other properties, such as velocity in a physics simulation.
To create an internal variable, type the object handle then dot-dollar sign (.$) followed by the name of the variable.
Object@ obj = GetObject("MyObject"); obj.$MyInternalVariable = 1;Related articles: