Custom variable declared in JS, that isn't in plugins.

Hey… I’m rewriting things to JavaScript, and I ran into a problem. How can I declare a custom variable like var myScript : MyScript, when the variable script isn’t in plugins? Because I have a problem that when it is in plugins, and is compiled before another script there is a error.

– David

The only way to reference a variable in a script in an other language, is if it is higher in the compilation order. It does not have to be in plugins, it can also be in standard assets, but that’s it. Why can’t you place this script in there?