T3D/Scripters/T3D Scripters Variables
From TDN
[edit]
Local Variables
Local variables are variables that can be accessed only within the function or block that they are defined.
Local variables are defined in torque as %somevar.
[edit]
Global Variables
Global variables are variables that can be accessed not only within a function or block, but also from anywhere in the game engine.
Global variables can be defined as $somevar but typically they are found as $group::subgroup::somevar.
For example $pref::GuiEditor::drawBorderLines is a global variable that is used by the GuiEditor.
This layout is mostly for organization.