SA-MP Forums Archive
Flipped car respawn - 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: Flipped car respawn (/showthread.php?tid=627613)



Flipped car respawn - Juonis - 30.01.2017

Hello,

I want to ask is there a way to respawn a vehicle if it flipped? For example, you are driving somewhere in Los Santos and your vehicle flips. Of course it sets on fire and explodes. When it explodes it would not respawn in its original position but it would respawn where it exploded? Also if vehicle would be exploded in any other way (with commands, set on fire and etc) it would respawn in its original place.

Is there a way? Any suggestions?


Re: Flipped car respawn - jamesbond007 - 30.01.2017

i think u can detect if its flipped with GetVehicleRotationQuat