News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
0 Members and 1 Guest are viewing this topic.
Alternatively, PedIsHit(PedName).
Quote from: SimonBestia on June 21, 2021, 04:45:56 PMAlternatively, PedIsHit(PedName).Does the VehicleIsHit() function exist?
if VehicleIsValid(CAR) and CarGetDamageNumber(CAR) >= 1 then TextPrintString("Car got hit!\nCounts: "..CarGetDamageNumber(CAR), 4, 1)end
Quote from: Ming on August 02, 2021, 04:52:08 AMQuote from: SimonBestia on June 21, 2021, 04:45:56 PMAlternatively, PedIsHit(PedName).Does the VehicleIsHit() function exist?No, but you can use CarGetDamageNumber(VEHICLE_NAME). It returns a number of how many times the vehicle got hit.Example of use:Code: [Select]if VehicleIsValid(CAR) and CarGetDamageNumber(CAR) >= 1 then TextPrintString("Car got hit!\nCounts: "..CarGetDamageNumber(CAR), 4, 1)endI never test it to any vehicle other than car, but you can try it.