Flickering Light2

Description
Adds a flickering effect to a light. Create a curve of keyCount keys between randMin and randMax. The light intensity will be startVal + curve.Evaluate(t) * flickrIntensity and will loop every cycleDuration seconds.

Usage
Attach the following script to a light.

cycleDuration : How long before looping back to the beginning of the curve

keysCount : The number of keys

startVal : The value around which the intensity will be randomized

randMin : The min value of the curve

randMax : The max of the curve

flickrIntensity : The curve will be multiplied by that value and added to startVal