How to detect vehicle damage, and get damage taken?
#1

How to detect vehicle damage, and get damage taken?
Reply
#2

up ?
Reply
#3

ill give you an example

Код:
new panels,doors,lights,tires;
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
printf("Vehicle Status : [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",panels,doors,lights,tires);
Reply
#4

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

Store the HP in a global variable, and then everytime the damage is updated, GetVehicleHealth and compare it to see the damage taken.
Reply
#5

Thanks both. +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)