ZDoom Line Specials

110:Light_RaiseByValue

Name

Light_RaiseByValue — raises the light level in a sector by a specified amount.

Synopsis

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

Parameters

tag
The tag of the sector or sectors to raise the light in.
amount
The amount to raise 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 raises the light level instantly. If you want to raise 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 raised independantly. So if you have two sectors tagged 1 with light levels of 16 and 150 and you use the special Light_RaiseByValue (1, 10), their new light levels will be 26 and 160 respectively.

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

Examples

First Available In

Hexen

See Also

Light_ChangeToValue | Light_Fade | Light_LowerByValue