PlayerHealth

From ZDoom Wiki
Jump to: navigation, search
SkulltagIcon.png Warning: This feature is Skulltag specific, and is not compatible with ZDoom!
To see all of Skulltag's specific features, see Skulltag features.


int PlayerHealth (void)

Usage

Returns the current health value of the player who activated the script. An alternative method would be to use GetActorProperty.

Example

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