Mr.Loki Posted January 31, 2017 Share Posted January 31, 2017 Hello, I'm using vectors and im wondering if there is a better way of changing a vector into a table? This is what I'm currently doing because i want to use the unpack() function. pos = localPlayer.position T = {pos.x,pos.y,pos.z} Link to comment
myonlake Posted February 1, 2017 Share Posted February 1, 2017 (edited) No. What I do recommend is to make a method for that (instead of doing it always by hand) by extending the Vector3 class. function Vector3:unpack( ) return { self.x, self.y, self.z } end Edited February 1, 2017 by myonlake 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now