Usage
Syntax: vecx(int direction);
Returns the vector direction. Returns 0 when given 0 or 2.
Note: direction ranges from 0 to 3
Explanation
vecx gives you a direction vector based on the left or right direction. (Horizontal directions).
(Combined with vecy it can give you a 2 dimension vector, <x,y>)
Example
function onCreated() { temp.array = {vecx(0), vecx(1), vecx(2), vecx(3)}; }
... Will set temp.array to {0, -1, 0, 1}
Categories
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]