Dynamic function calls??
by Teromous · in Torque Game Builder · 04/12/2008 (1:52 pm) · 3 replies
Is there a way to create dynamic function calls? For instance, if there were a list of functions like:
OneFunction(){ ... }
TwoFunction(){ ... }
ThreeFunction(){ ... }
Then do some sort of code, so that you could do this:
%number @ "Function();"
Then when the string in %number is One, it would call OneFunction(); ?
OneFunction(){ ... }
TwoFunction(){ ... }
ThreeFunction(){ ... }
Then do some sort of code, so that you could do this:
%number @ "Function();"
Then when the string in %number is One, it would call OneFunction(); ?
About the author
Associate Phillip O'Shea
Violent Tulip
=)