Java script help (415942)

is their a way to reference scripts from the standard assets folder in other java scripts.

i’m trying to reference variables and functions i have stored in those scripts but am unsure how, i’ve read the manual on it, and it think it’s possible but how is still escaping me.

To Use them Just write a string in the line of code to them Like

if(thatScriptName.thatScriptVariable == 10) {
//Do something.
//Or
if(myBool==true){
thatScriptName.thatScriptVariable = 10;

Static variables 8)

thank you, i’ll try this and see if it works =)

yep worked find, it was the static var type that i wasn’t using.