IfHealth
Executes the following sub block if the player's health is greater than or equal to value. If not is provided, the check is inverted, and the sub block is executed if the player's health is less than value. Passing %, makes the check percentage-based instead of being hit points-based.
IfHealth [not] <value> [%]
Examples
This block of code is executed if the player's health is greater than or equal to 100 points.
IfHealth 100 { // commands... }
This one, however, is executed if the player's health is less than 75%.
IfHealth not 75 % { // commands... }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.