Functions Documentation
View Function Edit Function
Name objGetCargoSpaceLeft
Syntax (objGetCargoSpaceLeft spaceObject)
Argument List spaceObject: The space object that you want to get the cargo space left of.
Returns number: The amount of space left in the cargo bay.
Category spaceobject
Description Returns the amount of cargo space left in the space object.
(objGetCargoSpaceLeft gplayerShip)

Returns the amount of space left in the players ship.
Comment All* ships have a max cargo space defined in the XML, but any ship can go over this limit if items are placed on the ship without checking this function and respecting inventory limits manually.
( * Verify ... also, I'm not sure if the NPC looting functions like the commonwealth traffic scuttle-looting or the salavager code respects inventroy limits. --Weaver 2012 June)