A_Light

A customizable version of the A_Light# functions. intensity is a number between -20 and 20, 0 being standard brightness, while 1 is equivalent to A_Light1 and 2 to A_Light2. 320 are each a step brighter. Negative values for intensity, down to -20, can be used, and it will instead darken the scene.

A_Light (int intensity)

Examples

This BFG9000 fires dimming surrounding area:

Actor BFG4ZDWiki: BFG9000 replaces BFG9000
{
 Weapon.SlotNumber 7
 States
 {
 Flash:
   BFGF A 4 Bright A_Light( -1 )
   BFGF A 4 Bright A_Light( -2 )
   BFGF A 3 Bright A_Light( -3 )
   BFGF B 1 Bright A_Light( -3 )
   BFGF B 2 Bright A_Light( -4 )
   BFGF B 3 Bright A_Light( -5 )
   Goto LightDone // A_Light0
 }
}
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.