Change material parameters by object position (animation)

Still need to know how:

  1. how are you animating;
  2. if random, then what the interval between changes in intensity and color;
  3. is this mesh part of a BP;
  4. is the light a component of the BP;

Assuming that: both the mesh and the light are components of a BP; animation is done with a timeline; no interval between changes in intensity and color (which means a different one at every tick), then, for example: