HealThing

From ZDoom Wiki
Jump to: navigation, search

248:HealThing (amount)

Usage

Gives health to the thing that activated the special, but will not give it more than its maximum amount. (If you need to give a thing more health than its maximum amount, you can use SetActorProperty instead.)

Parameters

  • amount: Amount of health to give

Examples

This new Berserk powerup uses HealThing to heal the player to full health.

ACTOR NewBerserk : Berserk replaces Berserk
{
  States
  {
  Pickup:
     TNT1 A 0 A_GiveInventory("PowerStrength") 
     TNT1 A 0 HealThing(100)
     TNT1 A 0 A_SelectWeapon("KoolFist")
     stop
  } 
}

External links