I have a script written in javascript, but i need to call a function from a script written in c#. Is there anyway to get this to work besides rewriting everything in one language.
Yes.
The only catch is the referenced scripts need to be compiled first. You can find more information about compilation order at the following url from the front page of the documentation.