API GetActiveShipEnergy
From Vendetta Lua
Jump to navigationJump to 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:
<source lang="lua">GetActiveShipEnergy() -> 150.0 0.5</source>
the battery of this ship is half empty and has a capacity of 300