Thread: Rotating?
View Single Post
  #29  
Old 01-18-2008, 09:43 PM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Knightmare1 View Post
there is another car script i found, and it does gani, but it shows the car under you not rotating, but the direction is right. this was by chris.
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
  if ( 
player.chat == ":car" )
  {
    
this.car this.car;
    if ( 
this.car )
    {
      
client.frozen true;
      
setTimer0.05 );
    }
    else
    {
      
player.attr[6] = "";
      
client.frozen false;
      
setTimer);
    }
  }
}
function 
onTimeOut()
{
  
client.frozen true;    
  
player.getMoveXthis.accel );
  
player.getMoveYthis.accel );
  if ( 
keydown) )
  {
    
this.carAngle += .2;  
  }
  if ( 
keydown) )
  {
    
this.carAngle -= .2;
  }
  
  
temp.dx getMoveX);
  
temp.dy getMoveY);
  
player.dir getdirtemp.dx player.xtemp.dy player.);
  if ( 
keydown) )
  {
    
this.accel this.accel .1 this.accel .1;
  }
  else
  {
    
this.accel this.accel .1 this.accel this.accel .1;
  }
  
player.getMoveXthis.accel );
  
player.getMoveYthis.accel );
  
client.car_angle this.carAngle;
  
player.attr[5] = this.carAngle;
  
  
setAni"sit""" );
  
player.attr[6] = "ut_car.gani";

  
setTimer0.05 );
}
function 
getMoveXspeed )
{
  return 
player.sinthis.carAngle ) * speed;
}
function 
getMoveYspeed )
{
  return 
player.costhis.carAngle ) * speed;

Are you are using findImg(index).rotation = player.attr[5] somewhere in the Gani script? Also it is showing under the player because the visibility is too low (you should be hiding the player anyways). changeimgvis(index, 3) should work though.
Reply With Quote