Getting the first, second and third vector values seperatley.
2 replies, posted
Hello,
I've been looking around to try and find how to just get the first, second, or third value of Vectors, and not the whole string. However I have not found anything that does/shows how.
Is this possible?
Vectors can be indexed using the string keys "x", "y", and "z". They can also be index using 1 through 3.
e.g.
[code]
print(Vector(1, 2, 3).x) -- 1
[/code]
[QUOTE=bigdogmat;52844143]Vectors can be indexed using the string keys "x", "y", and "z". They can also be index using 1 through 3.
e.g.
[code]
print(Vector(1, 2, 3).x) -- 1
[/code][/QUOTE]
Thank you so much, you just made life so much easier!
Sorry, you need to Log In to post a reply to this thread.