SA-MP Forums Archive
Time to location - Formula Required - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Time to location - Formula Required (/showthread.php?tid=393592)



Time to location - Formula Required - Kyle - 18.11.2012

Edited.


Re: Time to location - Formula Required - Backwardsman97 - 18.11.2012

Well it kind of depends on what the purpose of this is. Because the length of time it would take would depend on what vehicle you're using. Also the distance would be in GTA units which could be converted to a more real-life unit.


Re: Time to location - Formula Required - Kyle - 18.11.2012

Edited.


Re: Time to location - Formula Required - Potassium - 18.11.2012

Yeah, you'd base it on whatever vehicle was supposed to be used. Like obviously if this was for a trucking mission you'd use a truck.

But if it's for any vehicle then I guess maybe try with the fastest vehicle and the slowest vehicle and see how long it takes with each, then any time between those two would be acceptable or something. It's kinda difficult to help without knowing exactly what it's for.

EDIT: oops you replied while I was writing this


Re: Time to location - Formula Required - ReneG - 18.11.2012

I don't think you can calculate this. There are roads and natural landmarks that you would have to account for. The only way you could do this is if you were to drive to the destination yourself and time it.