a guest Dec 8th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- MyFixedPoint vinv = welderInventory.MaxVolume;
- // Find the cube root of v
- double v = Math.Pow(vinv, 1 / 3);
- Vector3 vec = new Vector3(v, v, v);
- _TransportInventory = new Sandbox.Game.MyInventory((float)welderInventory.MaxVolume / MyAPIGateway.Session.InventoryMultiplier, vec, MyInventoryFlags.CanSend); //MaxVolume handled in Pick functions
RAW Paste Data