API GetActiveShipEnergy

From Vendetta Lua
Revision as of 21:58, 25 January 2009 by Chefkoch (Talk | contribs) (split)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GetActiveShipEnergy

Definition:
GetActiveShipEnergy() -> float eng fraction
Description:
returns the energy level of the active ship
Returns:
eng energy level in game units 0 .. maxcapacacity
fraction energy level as float from 0.0-1.0
Example:

GetActiveShipEnergy() -> 150.0 0.5

the battery of this ship is half empty and has a capacity of 300