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?
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.
print(Vector(1, 2, 3).x) -- 1
Thank you so much, you just made life so much easier!