In the future, please use the scripting forum for general non-2D related scripting questions. Also, always use code-tags when posting code, even for small snippets.