SA-MP Forums Archive
Script accidents - 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: Script accidents (/showthread.php?tid=427030)



Script accidents - ala67 - 31.03.2013

Hi, it's a long time I'm looking for a script for accidents, that when a person collides with a vehicle, falls life.
I tried to create my own, but does not work! : (

Sorry for my english, i'm italian


Re: Script accidents - RajatPawar - 31.03.2013

Collisions with other vehicles are indeed hard to detect, and I bet some really good scripters would have a problem with this. Even if it is made, it would be a teensy bit inaccurate. I guess your best chance is someone making it for you. I don't know if such a FS exists. I may be completely wrong.


Re: Script accidents - Vince - 31.03.2013

If a vehicle collides then usually something gets damaged. Be it the bumpers, the hood, the trunk, the doors, ... Those are all things that you can check for, along with health changes.


Re: Script accidents - Apenmeeuw - 31.03.2013

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

https://sampwiki.blast.hk/wiki/GetVehicleDamageStatus

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus

https://sampwiki.blast.hk/wiki/GetVehicleHealth

https://sampwiki.blast.hk/wiki/SetVehicleHealth

you can use those to check if a vehicle gets damaged/get the health of a vehicle