ZDoom Line Specials

112:Light_ChangeToValue

Name

Light_ChangeToValue — sets the light level in a sector.

Synopsis

Light_ChangeToValue (tag, amount);
Light_ChangeToValue (
  tag,       // Tag of affected sector
  amount     // New light level
);

Parameters

tag
The tag of the sector or sectors to change the light in.
amount
The new light level to use. Light levels can be no lower than 0 or higher than 255.

ACS

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

Remarks

This special changes the light level instantly. If you want to change the light gradually over a period of time, you should use Light_Fade instead.

Examples

First Available In

Hexen

See Also

Light_Fade | Light_Flicker | Light_LowerByValue | Light_MaxNeighbor | Light_MinNeighbor | Light_RaiseByValue | Light_Strobe | Light_StrobeDoom