Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Uhfgood on July 20, 2007, 11:22:46 PM

Title: globals
Post by: Uhfgood on July 20, 2007, 11:22:46 PM
I was trying to define a global, only whenever i ran the program the game would report "[global] referenced but not used".  In the docs it doesn't say you need to add the declaration of the global to the script it's in.  In other words you need to have global myInt = 10; in one script, but if you want to use it anywhere else you need global myInt; in any other script file that needs it.  I figured this out by searching through the forum, but you may want to correct it in the docs or else make it truely global.

Keith