Vehicle crashing into something
#1

How to check if car crash into wall or into streetlight and so on.....
I have no idea how it should coded so example is the best..
Reply
#2

Probably it would be Impossible, I have never seen in this way code. I mean Perhaps it would be, Not surely.
Reply
#3

Crashing into a pole would be hard to near impossible to detect. Wall might be slightly easier. You can check if the health of the vehicle went down and if the forward velocity went to near zero. You could check this in a callback like OnVehicleDamageStatusUpdate as crashing into the wall will certainly damage the lights, the bumpers and maybe even the hood.
Reply
#4

pawn Код:
OnVehicleDamageStatusUpdate(vehicleid, playerid)
sometimes when we crash against one street light the car damage don't change... (happened with me)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)