Scripting/Server/Classes/Vehicle/SetBurstableTyres

(v0.3.1-r2+) Gunfire bursts (true) or cannot burst (false) the tyres of this one vehicle; overrides SetBurstableTyres() for it. A burst tyre is part of the vehicle state: it stays burst for everybody who joins later and until vehicle.Fix() or a respawn. Plain cars only (no bikes, boats or aircraft). Burst tyres rattle on their rims with sparks and the car handles badly; shots that hit a tyre do no other damage to the car.

Syntax

vehicle.SetBurstableTyres(bool)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setburstabletyres" )
	{
		local veh = player.Vehicle;
		if ( !veh ) return MessagePlayer( "Sit in a vehicle first.", player );
		veh.SetBurstableTyres( true );
	}
}

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

Section: Vehicle

Categories: Server methods | Vehicle