PlayerHealth

Revision as of 15:14, 21 August 2016 by DrinkyBird (talk | contribs) (Created page with "{{Template:ACSWarning}} int '''PlayerHealth''' (void) ==Usage== Returns the amount of health the activator of the script has. Returns zero if the activator is world. This i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int PlayerHealth (void)

Usage

Returns the amount of health the activator of the script has. Returns zero if the activator is world.

This is equivalent to Template:ZDW (0, APROP_Health)

Examples

script 1 (void)
{
  if (PlayerHealth() > 75)
       {{{2}}}(s:"You have a lot of health!");
  else
       {{{2}}}(s:"You might want to find a medkit!");
}