1,584
edits
DrinkyBird (talk | contribs) No edit summary |
DrinkyBird (talk | contribs) No edit summary Tag: Source edit |
||
Line 2: | Line 2: | ||
int '''PlayerHealth''' (void) | int '''PlayerHealth''' (void) | ||
==Usage== | == Usage == | ||
=== Return value === | |||
Returns the amount of health the activator of the script has. Returns zero if the activator is world. | Returns the amount of health the activator of the script has. Returns zero if the activator is world. | ||
This is equivalent to <code> | This function is equivalent to <code>{{Zdoomwiki|GetActorProperty}}(0, APROP_Health)</code>. | ||
== Examples == | |||
<syntaxhighlight lang="c" line="1"> | <syntaxhighlight lang="c" line="1"> | ||
Script 1 (void) | Script 1 (void) | ||
Line 24: | Line 23: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[category:ACS | [[category:ACS functions]] |