Difference between revisions of "API GetPlayerHealth"
From Vendetta Lua
(split) |
Chocolateer (Talk | contribs) (return includes shields percent) |
||
Line 1: | Line 1: | ||
=== GetPlayerHealth === | === GetPlayerHealth === | ||
'''Definition:''' | '''Definition:''' | ||
− | GetPlayerHealth(int charid) -> float health | + | GetPlayerHealth(int charid) -> float health shields |
<br> | <br> | ||
'''Description:'''<br> | '''Description:'''<br> | ||
Line 10: | Line 10: | ||
<br> | <br> | ||
'''Returns:'''<br> | '''Returns:'''<br> | ||
− | ''health'' health of character in percent or -1 if character is not in the current sector | + | ''health'' health of character in percent or -1 if character is not in the current sector<br> |
+ | ''shields'' shields of character in percent or nil if doesn't have shields | ||
<br> | <br> |
Latest revision as of 04:25, 18 January 2016
GetPlayerHealth
Definition:
GetPlayerHealth(int charid) -> float health shields
Description:
get health of provided character
Arguments:
charid character id
Returns:
health health of character in percent or -1 if character is not in the current sector
shields shields of character in percent or nil if doesn't have shields