Code: Select all
Class TC : Actor
{
override void PostBeginPlay()
{
// The sector version works fine.
for (int i = 0; i < Level.Sectors.Size(); i++)
{
Sector s = Level.Sectors[i];
if (s)
{
s.SetSpecialColor(Sector.Floor,"Blue");
s.SetSpecialColor(Sector.Wallbottom,"Blue");
s.SetSpecialColor(Sector.Walltop,"Gold");
s.SetSpecialColor(Sector.Ceiling,"Gold");
}
}
// This side version however does nothing.
for (int i = 0; i < Level.Sides.Size(); i++)
{
Side s = Level.Sides[i];
if (s)
{
for (int j = 0; j < 1; j++)
{
s.SetSpecialColor(j,0,"Blue");
s.SetSpecialColor(j,1,"Gold");
}
s.EnableAdditiveColor(i,true);
}
}
Destroy();
}
}
The Sector version works just fine though. I even tried using SetSpecialColor for the sector upon it first and then change the side but nothing happened still.