Hi, would someone be able to convert this to C for me? The script is By Blade

#include <acknex.h>
#include <default.c>

var counter = 0;

function change_colour()
{
my.ambient = 500;
my.lightrange = 150;

while(1)
{
if(counter == 4)
{
counter = 0;
}

if(counter == 0)
{
my.green = 32;
my.blue = 240;
my.red = 160;
}
else if(counter == 1)
{
my.green = 255;
my.blue = 0;
my.red = 0;
}
else if(counter == 2)
{
my.green = 255;
my.blue = 0;
my.red = 255;
}
else if(counter == 3)
{
my.green = 0;
my.blue = 0;
my.red = 255;
}

counter += 1;
wait(-1);
}
}

action flashing_lights()
{
change_colour();
}

function main()
{
level_load("test_light.wmb");
wait(1);
}


Thanks!
Doof


To see what 3d models i have made and animated, see the link to my bloghttp://championsdawn.blogspot.com