Game Development Community

Dynamic reference to function argument in torque script?

by gamer · in Torque Game Engine · 01/11/2007 (5:26 pm) · 1 replies

Can I do something similar to the following?
function f(){
echo(args[0]);
echo(args[1]);

}

meaning can I setup function that doesn't know what arguments or how many arguments it will take , but can reference these arguments.
thanks!

#1
01/11/2007 (6:42 pm)
U have to write that function as consolefunction in the engine