SetShade

From ZDoom Wiki
Revision as of 08:37, 22 October 2017 by Blue Shadow (talk | contribs) (SetShade)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;
    }
}