Vehicle's rotation velocity?
#1

The title say it all, how would I get it?
Reply
#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
#3

Helped me a lot... thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)