I am trying to have a teleporter change the color of a Light actor. I am able to find the actor, and I can even read the before and after values of the color change.. however, the light does not seem to actually change color. Do I need to somehow call a "refresh" or "re-render"? (This is for UT2k4, but guessing the methods are the same in Unreal 22X).
Code: Select all
// secret location is next, change light color
foreach AllActors( class 'Light', L )
if( string(L.tag)~=GoalLight && L!=Self )
{
Lights[i] = L;
Other.Instigator.ClientMessage(L.Name); //correctly finds "Light0"
Other.Instigator.ClientMessage(L.LightHue); //correctly shows "before value"
L.LightBrightness = GoalLightBrightness;
L.LightHue = GoalLightHue;
L.LightSaturation = GoalLightSaturation;
Other.Instigator.ClientMessage("now");
Other.Instigator.ClientMessage(L.LightHue); // correctly shows "after value", but no physical change...
i++;
if ( i > arraycount(Lights) )
break;
}