well, ork made a car script that doesnt work, but it rotates the car. why wont it work?
PHP Code:
//#CLIENTSIDE
function onCreated() enabledefmovement();
function onPlayerChats()
{
if (player.chat == "/car")
{
onCreated();
this.car = !this.car;
if (this.car) onTimeOut();
if (!this.car) setTimer( 0 );
}
}
function onTimeOut()
{
disabledefmovement();
showimg( 1, "ut_car-upd_up.gif", player.x, player.y );
findimg( 1 ).rotation = this.ang;
if ( keydown( 3 ) )
{
this.ang -= .1;
}
if ( keydown( 1 ) )
{
this.ang += .1;
}
if ( keydown( 0 ) )
{
player.x -= cos( this.ang ) * 1;
player.y -= sin( this.ang ) * 1;
}
setTimer( 0.05 );
}
it shows the car, the car rotates, but it still goes the direction that your holding. (and it shows the charecter)