Advertisement
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement