Scripting/Server/Functions/SetBurstableTyres

(v0.3.1-r2+) Turns the burstable tyres of the IIIBurstableTyres mod on or off for every car (a port of the mod, bullet hits on a wheel burst it). Off by default. It also clears the per-vehicle choices made with vehicle.SetBurstableTyres(), so afterwards all cars follow this setting. The burst state is synced to all players and to players who join later.

Syntax

SetBurstableTyres(bool)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setburstabletyres" )
	{
		SetBurstableTyres( true );
	}
}

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

Section: World settings

Categories: Server functions | World settings