Controlling dynamic lights

From ZDoom Wiki
Jump to: navigation, search
Note: This feature is for ZScript only.

By creating and using a PointLight inheriting class, it's possible to change a dynamic light's colors and size. To change its size and color, simply change the dynamic lights arguments.

The MISSILEEVENMORE flag has a special use for dynamic lights. When present, it enables the subtractive mode.

  • arg[0,1,2] - Red, green and blue channels respectively. Ranges from 0 - 255 each. The higher the number, the higher the saturation of that color.
  • arg[3] - The size of the light.
  • arg[4] - For flicker and pulse lights only, sets the secondary size.