A_ResetHealth

A_ResetHealth [(int pointer)]

Usage

Sets the pointed to actor's health to the value it spawned in the game with. This function only has an effect on actors with health value greater than 0.

Parameters

  • pointer: the actor to reset its health. This is an actor pointer. Default is AAPTR_DEFAULT, which corresponds to the calling actor.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.