Liberty Unleashed

Scripting => Script Help => Topic started by: scherdee on August 19, 2012, 01:01:20 pm

Title: Problems with Vehicle.Angle
Post by: scherdee 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.
Title: Re: Problems with Vehicle.Angle
Post by: VetalYA on August 19, 2012, 03:42:23 pm
You cant fix this by scripts, cause Its a small server bug, that need to be fixed.