.
.
while(entCar != NULL)
{
schub_L = 0;
schub_R = 0;
if(key_pressed(key_for_str("cuu")) == 1)
{
schub_L = -1;
schub_R = -1;
}
if(key_pressed(key_for_str("cud")) == 1)
{
schub_L = 1;
schub_R = 1;
}
if(key_pressed(key_for_str("cul")) == 1)
{
schub_L = -1;
schub_R = 1;
}
if(key_pressed(key_for_str("cur")) == 1)
{
schub_L = 1;
schub_R = -1;
}
pXcon_setwheel(entFrontLeftWheel, 0, (schub_L)*100000*time_step, 0);
pXcon_setwheel(entFrontRightWheel, 0, (schub_R)*100000*time_step, 0);
pXcon_setwheel(entBackLeftWheel, 0, (schub_L)*100000*time_step, 0);
pXcon_setwheel(entBackRightWheel, 0, (schub_R)*100000*time_step, 0);
wait(1);
}
.
.