Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


  Show Posts
Pages: [1]
1  Scripting / Script Help / Problems with Vehicle.Angle on: August 19, 2012, 01: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.
Pages: [1]
© Liberty Unleashed Team.