ZDoom Line Specials

116:Light_Strobe

Name

Light_Strobe — switches the light in a sector between two light levels at a specific rate

Synopsis

Light_Strobe (tag, upper, lower, u_tics, l_tics);
Light_Strobe (
  tag,       // Tag of affected sector
  upper,     // Upper light level
  lower,     // Lower light level
  u_tics,    // Time to stay at upper light level
  l_tics     // Time to stay at lower light level
);

Parameters

tag
The tag of the sector or sectors to change the light in.
upper
The maximum light level to jump to. This can be no higher than 255.
lower
The minimum light level to jump to. This can be no lower than 0.
u_tics
The time, in tics, to stay at the upper level before changing to the lower level.
l_tics
The time, in tics, to stay at the lower level before returning to the upper level.

ACS

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

Remarks

This special causes the light in a sector to jump between the upper and lower levels instantly with a set delay between each transition. Unlike Light_Glow, the time to change from upper to lower does not need to be the same as the time to change from lower to upper. It is similar to Light_Flicker, except the time between light transitions is not random.

ACS Equivalent

If you want to use ACS to achieve the same effect as this special, you can use code similar to the following inside a script. This could be useful if you want the ability to stop the effect after it starts, because Light_Strobe never ends.

while (1)
{
    Light_ChangeToValue (tag, upper);
    delay (u_tics);
    Light_ChangeToValue (tag, lower);
    delay (l_tics);
}

First Available In

Hexen

See Also

Light_ChangeToValue | Light_Flicker | Light_Glow | Light_StrobeDoom