API GetActiveShipGridPowerAndUsage: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
(No difference)
|
Latest revision as of 21:59, 25 January 2009
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