API GetActiveShipGridPowerAndUsage
From Vendetta Lua
Jump to navigationJump to 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:
<source lang="lua">GetActiveShipGridPowerAndUsage() -> 20 12</source>
the ships power grid has a capacity of 20 and 12 are currently used