Scripting/Server/Events/onVehicleDamage

Vehicle health went down. bywho = the Player whose bullet hit it (reported within the last 0.8 s, ending within 8 m of the car), null = collision, explosion or unknown.

Syntax

onVehicleDamage(vehicle, bywho)

Arguments

Example

function onVehicleDamage( vehicle, bywho )
{
	print( "onVehicleDamage fired for vehicle " + vehicle.ID );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Vehicles

Categories: Server events | Vehicles