Vehicle's rotation velocity?
#2

I don't think there is such function but you can check the last facing angle of the vehicle using a timer =].

pawn Код:
new VehicleRot[MAX_PLAYERS];

public OnGameModeInit()
{
  SetTimer("Timer", 500, true);
  return 1;
}
public Timer()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerInAnyVehicle(i))
    {
      new Float:Angle;
      GetPlayerFacingAngle(playerid, Angle);
      VehicleRot[playerid] = Angle;
    }
  }
  return 1;
}
Reply


Messages In This Thread
Vehicle's rotation velocity? - by Miguel - 06.03.2010, 02:53
Re: Vehicle's rotation velocity? - by [HiC]TheKiller - 06.03.2010, 03:00
Re: Vehicle's rotation velocity? - by Miguel - 06.03.2010, 04:10

Forum Jump:


Users browsing this thread: 1 Guest(s)