ThingLightAnim


Animates a thing's lighting. When the animation begins, the thing's light will be set to the min_light. Then the thing's light will gradually change to the max_light during the fade_time. When the light reaches the maximum, it returns to the minimum and continues the cycle. Use StopAnim() to stop Thing Light Animations. Syntax:

animID=ThingLightAnim(thing, min_light, max_light, fade_time);

min_light: This is the minimum light that the thing will have during the animation.

max_light: This is the maximum light that the thing will have.

fade_time: This is the time in seconds that it takes for the light to fade from one light value to the other.

This verb is similar to SurfaceLightAnim(), but ThingLightAnim() does repeat while SurfaceLightAnim() does not.