Scripting/Server/Traffic/car.Explode
Blow up / full health and no visual damage / delete. A removed car takes its traffic occupants with it.
Syntax
car.Explode()car.Fix()car.Remove()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "explode" )
{
// car is a car handle (see TrafficVehicle)
car.Explode();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Section: TrafficVehicle
Categories: Server functions | TrafficVehicle