So how do I go about turning a x, y, and z into a main position. I have the following:
Inside the "case "go":" i need to be able to put all of that Data into one position.Code:case "create": storedData.aX = player.transform.position.x; storedData.aY = player.transform.position.y; storedData.aZ = player.transform.position.z; break; case "go": break;
Converting X Y Z position to single variable?
Discussion in 'Rust Development' started by DylanSMR, Mar 4, 2016.
-
Is this being stored? You can convert each value to a float and save them, then to retrieve it add new Vector3(float.x, float.y, float,z)
-
Yeah it is, and thanks
