vector
A vector variable allows you to hold 3 floating point numbers. The default value of a vector will equal <<0.0,0.0,0.0>>
vector $defaultvector;
vector $myvector = <<1.3, 1.2, 1.1>>;
One way to look at a vector is to look at the first through third slot respectfully as <<X, Y, Z>>.
Vectors are usually used in storing directions or positions If you wanted to use an
individual compnent of a vector you would call it as such:
vector $V = <<1.3, 1.2, 1.1>>;
print ($V.x);
The resulting value should return 1.3.
Lets move an object using a vector value:
//assign random numbers to vector
vector $V = <<(rand(0,10)), (rand(0,10)), (rand(0,10))>>;
//replace yourObjName with the object name of what you want to move
move ($V.x) ($V.y) ($V.z) yourObjName;
//print the objects new position
print ("\nthe objects position is: "+$V.x +" "+$V.y+" "+$V.z);