The setGlobalNelVar native AI script function sets the content of a NeL Variable in the global scope. The variable is created if it doesn't exist.
()setGlobalNelVar(varId: s, value: f) // setGlobalNelVar_sf_
()setGlobalNelVar(varId: s, value: s) // setGlobalNelVar_ss_
()setGlobalNelVar("BotCount", 32);
This example code sets the "BotCount" NeL Variable to 32 in the global scope.
()setGlobalNelVar("BotFamily", "the_killers");
This example code sets the "BotFamily" NeL Variable to "the_killers" in the global scope.