What's the difference between $ or %?
by Aaron Varshney · in Torque Game Builder · 04/15/2005 (4:27 pm) · 3 replies
I've actually wanted to know this, in some places I see $ and others I see %, I always use $ of which I don't see any difference, is there a need for a % at all or is it used to allow the use of two variables with the same name?
Just curiosity, and curiosity killed the cat. :p
Just curiosity, and curiosity killed the cat. :p
About the author
Torque 3D Owner Matthew Langley
Torque
is a global variable and can be references anywhere in the script
%test
is a local variable that can only be referenced in the scope of a single function, it then is destroyed... be careful not to use these in the console, considering the scope in the console is each command :)