ZDoom Line Specials

111:Light_LowerByValue

Name

Light_LowerByValue — lowers the light in a sector by a specified amount

Synopsis

Light_LowerByValue (tag, amount);
Light_LowerByValue (
  tag,       // Tag of affected sector
  amount     // Amount to lower the light by
);

Parameters

tag
The tag of the sector or sectors to decrease the light in.
amount
The amount to decrease the light by.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

This special lowers the light level instantly. If you want to lower the light gradually over a period of time, you may be able to use Light_Fade instead.

If there is more than one sector with the tag you specify, each sector will have its light lowered independantly. So if you have two sectors tagged 1 with light levels of 16 and 150 and you use the special Light_LowerByValue (1, 10), their new light levels will be 6 and 140 respectively.

A sector's new light level will never be lower than 0 after this special is used.

Examples

First Available In

Hexen

See Also

Light_ChangeToValue | Light_Fade | Light_RaiseByValue