Table to userdata?

I converted GetPos() into a table, is it possible to convert it back to userdata?

How did you convert it to a table?

string.Explode()

You can access a Vector object as if it is a table (it is a ~special~ table)



local pos = ply:GetPos()
local x = pos.x
local y = pos.y
local z = pos.z


You can create Vector objects using the Vector function: http://wiki.garrysmod.com/page/Global/Vector



local pos = Vector(12, 12, 12)


In this case, pos.x, pos.y and pos.z are all equal to 12.


local pos = Vector( mytable.x, mytable.y, mytable.z )

?

@Edit:

Darn it, someone ninja’d it.

Thanks.