A_SetHealth(int health [, int pointer])
Sets the pointed to actor's health to health. This function cannot kill an actor; if the defined health is 0 or less, it will set the actor's health to 1 instead.
Functions such as A_Kill* or A_Damage* should be used for such a task, instead.
- health: The health value to set for the actor. Valid values are 1 and above.
- pointer: The actor to set its health. This is an actor pointer. Default is AAPTR_DEFAULT, which corresponds to the calling actor.
|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. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.|