Resource¶
A single resource value a thing holds (i.e. fuel, electric charge, etc). This is the type returned by the Part:RESOURCES suffix
-
structure
Resource¶ Suffix Type Description NAMEstring Resource name AMOUNTscalar Amount of this resource left DENSITYscalar Density of this resource CAPACITYscalar Maximum amount of this resource TOGGLEABLEBoolean Can this tank be removed from the fuel flow ENABLEDBoolean Is this tank currently in the fuel flow
-
Resource:
NAME¶ Access: Get only Type: string The name of the resource, i.e. “LIQUIDFUEL”, “ELECTRICCHARGE”, “MONOPROP”.
-
Resource:
DENSITY¶ Access: Get only Type: scalar The density value of this resource, expressed in Megagrams f mass per Unit of resource. (i.e. a value of 0.005 would mean that each unit of this resource is 5 kilograms. Megagrams [metric tonnes] is the usual unit that most mass in the game is represented in.)
-
Resource:
CAPACITY¶ Access: Get only Type: scalar What AMOUNT would be if the resource was filled to the top.