SA-MP Forums Archive
GetVehicleVelocity in OnUnoccupiedVehicleUpdate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetVehicleVelocity in OnUnoccupiedVehicleUpdate (/showthread.php?tid=538408)



GetVehicleVelocity in OnUnoccupiedVehicleUpdate - OstGot - 21.09.2014

Hi guys. I ran into the problem: getting to know the rate of unoccupied transport in public OnUnoccupiedVehicleUpdate, I get the last speed when transportation was occupied the driver. In the wiki about it nothing is written, however, judging by GetVehiclePos that returns the correct values​​, then here something is wrong...


Respuesta: GetVehicleVelocity in OnUnoccupiedVehicleUpdate - IvanAyuso - 07.10.2014

In 0.3z R4:
- The OnUnoccupiedVehicleUpdate is updated to include the new velocity of the vehicle updated.

Read https://sampwiki.blast.hk/wiki/OnUnoccupiedVehicleUpdate and check your code.


Re: Respuesta: GetVehicleVelocity in OnUnoccupiedVehicleUpdate - OstGot - 19.10.2014

Quote:
Originally Posted by IvanAyuso
Посмотреть сообщение
In 0.3z R4:
- The OnUnoccupiedVehicleUpdate is updated to include the new velocity of the vehicle updated.

Read https://sampwiki.blast.hk/wiki/OnUnoccupiedVehicleUpdate and check your code.
Yes, I know about it. But it not comfortable, for example, to get the old speed vehicle, create the new variables and writing them new speed each time.