PlayerHealth
![]() |
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
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 }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.