Console Functions - 1
return val; // optional
The syntax breaks down as follows:
function- Is a keyword telling TorqueScript we are defining a new function.
ClassName::- Is the class type this function is supposed to work with.
func_name- Is the name of the function we are creating.