Hey, I'm having trouble with a car script...
This is what I have. I want this to be similar to GXes (because they r leet. gj joey

) Like a trunk and Radio and they'll have 2 people with one person shooting.
Then I'de like them parkable with keys to drive. I have this so far.. Can anyone complete this? (Joey.. XD)
NPC Code:
//#CLIENTSIDE
function onCreated() enabledefmovement();
function onWeaponFired()
{
onCreated();
this.car = !this.car;
if ( this.car ) onTimeOut();
if ( !this.car ) setTimer( 0 );
}
function onTimeOut()
{
disabledefmovement();
showimg( 1, "fc_car.png", 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 );
}
Thank you!
-Ork