Code: Select all
colors {[0][32][64][96][128][160][192][224][255][224][192][160][128][96][64][32]}
Try this:
Code: Select all
{
colors {[0][32][64][96][128][160][192][224][255][224][192][160][128][96][64][32]}
index [0]
Start[ ()
{
Console(true);
Gravity(true);
BoxWidth(22);
BoxHeight(28);
SetEventState("Skeleton_Generator_1_1_On", true);
AttributeOrder("enemy_health", 10, "Destroyed");
LowLevel("Glow");
} ]
Glow[ ()
{
self.ThinkTime = 1.0;
c = colors[index];
SetEntityLighting("Skeleton_Generator_1_Eyes", 0, 0, 0, c, c, c, false);
index = index + 1;
if (index = colors.numChildren)
{
index = 0;
}
} ]
Destroyed[ ()
{
SetEventState("Skeleton_Generator_1_1_On", false);
SetNoCollision();
FadeOut(0.01,0);
AddExplosion("SkeletonGeneratorExplosion", "BONE02", 0, 0, 0);
LoopAnimation("Idle", 1.0, "");
Remove(true);
} ]
}