Vehicle interaction
#5

Quote:
Originally Posted by Vennox
Посмотреть сообщение
No, there is no function. BUT
You can try making a 1 second timer that is looping
stock GetVehicleSpeed(vehicleid)
{
if(vehicleid != INVALID_VEHICLE_ID)
{
new Float:Pos[3],Float:VS ;
GetVehicleVelocity(vehicleid, Pos[0], Pos[1], Pos[2]);
VS = floatsqroot(Pos[0]*Pos[0] + Pos[1]*Pos[1] + Pos[2]*Pos[2])*200;
return floatround(VS,floatround_round);
}
return INVALID_VEHICLE_ID;
}
[/PHP]
It should be between "180.0" and "181.5" "200.0" will give incorrect results.
Reply


Messages In This Thread
Vehicle interaction - by Geebrox - 17.05.2018, 20:27
Re: Vehicle interaction - by Vennox - 17.05.2018, 20:43
Re: Vehicle interaction - by Geebrox - 17.05.2018, 20:48
Re: Vehicle interaction - by Lokii - 17.05.2018, 20:57
Re: Vehicle interaction - by Pottus - 17.05.2018, 21:59
Re: Vehicle interaction - by NaS - 17.05.2018, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)