Scripting/Server/Classes/Vehicle/SetHandlingData

Per-vehicle handling override. id 0-55: the HANDLING_* constants (0-26) such as HANDLING_MASS, HANDLING_MAXVELOCITY, HANDLING_TRACTIONMULTIPLIER. GetHandlingData returns 0 for a value you never set.

Syntax

vehicle.SetHandlingData(id, value)
vehicle.GetHandlingData(id)

Arguments

Example

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

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

Section: Vehicle

Categories: Server methods | Vehicle