OnVehicleSpeed
#3

Quote:
Originally Posted by Yazzu
Посмотреть сообщение
OnPlayerUpdate
You don't know what you are talking about, OPU gets called a very large and unpredictable number of times per second, which is unnecessary for this. (Imagine calculating speed of vehicles 20 - 30 times per second)

You need to calculate the speed of the vehicle under a per second timer (I don't really see a 500ms timer required)
and then check if the speed is more than 30, if yes, get the position and create explosions where necessary. You can look at this thread for information about vehicle speeds.
Reply


Messages In This Thread
OnVehicleSpeed - by Trynda - 04.05.2014, 08:07
Re: OnVehicleSpeed - by Yazzu - 04.05.2014, 08:17
Re: OnVehicleSpeed - by RajatPawar - 04.05.2014, 08:23
Re: OnVehicleSpeed - by Trynda - 04.05.2014, 08:54
Re: OnVehicleSpeed - by EpicDutchie - 04.05.2014, 09:55
Re: OnVehicleSpeed - by Trynda - 04.05.2014, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)