API GetActiveShipHealth

From Vendetta Lua
Jump to: navigation, search

GetActiveShipHealth

Definition:
GetActiveShipHealth() -> int d1 d2 d3 d4 d5 d6 dmg max shields shields_max
Description:
returns information about the active ships health
Returns:
d? damage to subsection 0 = no damage
dmg accumulated damage of subsections
max max health of ship
shields current value of ship shields (nil if doesn't have shields)
shields_max max value of ship shields (nil if doesn't have shields)
Example:

GetActiveShipHealth() -> 500 10 10 0 0 0 520 1000000 30000 40000

ship has 500 damage in frontal region, 520 dmg overall, a max health of 1000000, 75% shields, and 40000 shields max