SetShade

From ZDoom Wiki
Jump to navigation Jump to search

void SetShade (color col)

Usage

Sets the stencil color of the actor.

Parameters

  • col: the color to set. This can either be a name, like "Red" or a hexadecimal value, like "FF0000".

Examples

This cacodemon turns completely red upon death.

class Caco : Cacodemon
{
    States
    {
    Death:
        HEAD A 0
        {
            A_SetRenderStyle(1.0, STYLE_STENCIL);
            SetShade("FF0000");
        }
        Goto Super::Death;
    }
}