From Zandronum Wiki
Jump to: navigation, search
Zandronum SkulltagOverlay.png Warning: This feature is Zandronum specific and may not supported by ZDoom and its other child ports!
Documentation may not be accurate, see ACS Functions.

int PlayerHealth (void)


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

This is equivalent to ZDoom Wiki GetActorProperty(0, APROP_Health).


 1 Script 1 (void)
 2 {
 3     if (PlayerHealth() > 75)
 4     {
 5         Print(s: "You have a lot of health!");
 6     }
 7     else
 8     {
 9         Print(s: "You might want to find a medkit!");
10     }
11 }