Scripting/Server/Functions/ToggleVehicleDents

(v0.4.8+) Switches realistic vehicle denting on or off for every player on the server (like ToggleRagdollPhysics). A car bends where it is hit: bonnets and boots fold, the wheels follow the dent, the collision bounds shrink with the body, smoke and headlight glow move with the crumpled front, and a blast near a car (or the car exploding) bends it in a few random places. Each client dents the cars it sees (not synced). PC only for now (the Android client ignores it); needs a 0.4.8 PC client. Tuning on the PC in lu_dent.ini. Client console: /dents on|off.

Syntax

ToggleVehicleDents(bool)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "togglevehicledents" )
	{
		ToggleVehicleDents( true );
	}
}

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

Section: Server information and administration

Categories: Server functions | Server information and administration