FadeTo

From ZDoom Wiki

Jump to: navigation, search

void fadeto (int red, int green, int blue, fixed amount, fixed seconds);

Usage

Fades the activator's view from the current palette flash to another one. This will also work if the activator is looking through another viewpoint. (Using a camera, etc)

Examples

script 100 enter
{
   //Fade to full intensity red in two seconds
   fadeto (255, 0, 0, 1.0, 2.0);
   delay(35 * 2);

   //Fade to half intensity black in two seconds, ...
   fadeto (0, 0, 0, 0.5, 2.0);
}
Personal tools