A_SetHealth
		
		
		
		Jump to navigation
		Jump to search
		
A_SetHealth(int health [, int pointer])
Usage
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.
Parameters
- 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.
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. |