A_ClassBossHealth

From ZDoom Wiki
Jump to navigation Jump to search

A_ClassBossHealth

(no parameters)

Multiplies the health of the calling actor by 5 when playing cooperative and sets the calling actor special1 field to 1, but only if it was equal to 0 beforehand. Otherwise it does nothing.

Examples

This demon can heal itself when heavily wounded, but only once.

Actor ToughDemon : Demon
{
	Health	500
	WoundHealth	100
	States
	{
		Wound:
		"----" A 5 A_ClassBossHealth
		goto See
	}
}