I don't know if it is mentioned in the old manual, but if you download the new release, it is included:
Quote:
Note that non-numeric arguments in functions keep their value only until the first wait instruction. Functions also accept numeric arrays or vectors as parameters. Because C-Script makes no difference between variables and arrays, we have to indicate to the function that a parameter should be handled as an array, instead of a single number. For this, the parameter name in the function definition is prefixed by a "&".
Example:
function vector_add (&sum,&v1,&v2)
{ // calculate the sum of two vectors
sum[0] = v1[0] + v2[0];
sum[1] = v1[1] + v2[1];
sum[2] = v1[2] + v2[2];
}
var vector1[3] = 1,2,3;
var vector2[3] = 4,5,6;
var vector3[3];
...
vector_add(vector3,vector1,vector2); // vector3 now contains 5,7,9
Okay, it is not shown that you also can take single variables as a parameter, so nevertheless, thanks TripleX, I also didn't know that. Very handy sometimes, i think.
Cheers
Sinthoras