getVariable – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 07:14, 11 January 2008

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)