getVariable – Talk

From Bohemia Interactive Community
Revision as of 07:14, 11 January 2008 by Doolittle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Only way I found to see if variable had even been assigned:

 if (format ["%1", _obj getVariable "myVar"] == "<NULL>") then {
  // initialize it
 };

--Doolittle 06:14, 11 January 2008 (CET)