This is an old revision of the document!
Some ACSUtils functions return multiple values (e.g. vector math functions). ACS doesn't support returning multiple values from a function.
ACSUtils uses a convention to fake returning multiple values from a function. The convention is as follows: there are 8 global variables with names r1
through r8
. If a function returns multiple values, it actually returns no value and writes the first “returned” value to r1
, the second one to r2
, and so on.
Here's an example:
RotateVector(x, y, angle); int newX = r1; int newY = r2;