i don't know what skybox function you mean, but i assumed that is the correct way to do it.
afaik, when you declare a local in a function, that function will be able to use that variable even if there is a global variable of the same name. if you don't specify a local then a global of the same name will override it. so you may end up with a bug in your code if you don't use locals in functions.
afaik, when you declare a local in a function, that function will be able to use that variable even if there is a global variable of the same name. if you don't specify a local then a global of the same name will override it. so you may end up with a bug in your code if you don't use locals in functions.