API GetActiveShipGridPowerAndUsage

From Vendetta Lua
Jump to: navigation, search

GetActiveShipGridPowerAndUsage

Definition:
GetActiveShipGridPowerAndUsage() -> int power usage
Description:
returns the energy grid power and usage of the current ship..
Returns:
power energy grid power
fraction power usage
Example:

GetActiveShipGridPowerAndUsage() -> 20 12

the ships power grid has a capacity of 20 and 12 are currently used