is there a way i can get the sun to move? ive tried this:

Code:
var MoveSun;

function MoveSun_startup()
{
	while(1)
	{
		if(MoveSun)
		{
			sun_angle.pan += 1.25 * time_frame; 
			sun_angle.pan %= 360; 
			sun_angle.tilt = fsin(sun_angle.pan, 45) + 45;
			//sun_light = 2 * sun_angle.tilt;
			sun_light = 500;
		}
		wait(1);
	}
}




nothing works... help?


Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.