Hey everybody. Right now, I was messing around with some code and models with a car and a simple cube, and I started learning about how to control it with C_Move, and then set the camera to it and such.

But then, after awhile, it was working great. And...It stopped working? It loads up fine, the camera and everything is fine, but when I press the keys to move it forward, or turn, or go backwards, it doesn't do anything?

This is the code:

Code:
 	///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////
ENTITY* car;


function main()
{
	level_load ("homework18.wmb");
	wait (2);
	car = ent_create("car1.mdl", vector(0,0,10), NULL);
	while(1)
{
	camera.x = car.x;
	camera.y = car.y;
	camera.z =  car.z +17;
	camera.tilt = -5;
	wait(1);
}
}

action my_car()
{
	while (1)
	{	
		
		if (key_a)
		{
			car.pan += 3*time_step; // increase the pan angle of the car
			camera.pan += 3*time_step;
	}
		if (key_d)
		{
			car.pan -= 3*time_step; // decrease the pan angle of the car
			camera.pan -= 3*time_step;
	}
		if (key_w) // press and hold the "Space" key to move the car
		{
			c_move (car, vector(15*time_step, 0, 0), nullvector, GLIDE);
	}
	   if (key_s)
	   {
	c_move (car, vector(-15*time_step, 0, 0), nullvector, GLIDE);
      }
	
	}
}




Anyone know what is wrong?