SA-MP Forums Archive
detect if vehicle falling off !? - 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: detect if vehicle falling off !? (/showthread.php?tid=542866)



detect if vehicle falling off !? - carl0o0s - 22.10.2014

hello
are there anyway to find out if player's vehicle is falling off from mountains or building ? !?

regards


Re: detect if vehicle falling off !? - kaisersouse - 22.10.2014

You could check a vehicles downward velocity every 500ms and if it exceeds a certain limit for a certain period of time...do whatever it is you intend on doing.

I'm sure w/ MapAndreas there is a much easier way.