API GetActiveShipHealth

From Vendetta Lua
Revision as of 04:20, 18 January 2016 by Chocolateer (talk | contribs) (returns include current value of shields and shields max)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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:
<source lang="lua">GetActiveShipHealth() -> 500 10 10 0 0 0 520 1000000 30000 40000</source>
ship has 500 damage in frontal region, 520 dmg overall, a max health of 1000000, 75% shields, and 40000 shields max