Author Topic: Problems with Vehicle.Angle  (Read 2006 times)

scherdee

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Problems with Vehicle.Angle
« on: August 19, 2012, 02:01:20 pm »
Here is a script, what must overturn and repair car with saving angle and velocity:
Code: [Select]
if ( pPlayer.Vehicle )
{
local a = pPlayer.Vehicle.Angle;
local v = pPlayer.Vehicle.Velocity;
pPlayer.Vehicle.Fix();
pPlayer.Vehicle.Pos = pPlayer.Vehicle.Pos;
pPlayer.Vehicle.Angle = a;
pPlayer.Vehicle.Velocity = v;
}
But angle isn't saving and car turns in random direction. Please help solve the problem.

VetalYA

  • Guest
Re: Problems with Vehicle.Angle
« Reply #1 on: August 19, 2012, 04:42:23 pm »
You cant fix this by scripts, cause Its a small server bug, that need to be fixed.

 

© Liberty Unleashed Team.