SA-MP Forums Archive
Detecting a car crash - 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: Detecting a car crash (/showthread.php?tid=354941)



Detecting a car crash - milanosie - 28.06.2012

Hello, a question,

What do you all think what the best way is to detect a car crash?

I was thinking about some different methods:
Any more ideas?
And what would be the best way?:3


Re: Detecting a car crash - Danijel. - 28.06.2012

Checking the damage of a vehicle compared to the damage before.


Re: Detecting a car crash - sleepysnowflake - 28.06.2012

Why would you check the speed? What if the person stops on purpose?


Re: Detecting a car crash - milanosie - 28.06.2012

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
Why would you check the speed? What if the person stops on purpose?
Not just the speed, explained that wrong.

I mean the speed + colision, because you will get damaged from driving next to a fence and barely hitting it, but you wont take any injuries from that.

For a full crash your car would also stop.


Re: Detecting a car crash - sleepysnowflake - 28.06.2012

Isn't just easy to get the damage to the car? You don't have to check the speed that way. But if you check the speed you gotta also check the collision.