Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.67

Description

Description:Sets the cone index for an object (most likely, a piece of road).

Higher cone indices slow down vehicles crossing this object. The wet index is a maximum which is only reached after several minutes of heavy rain. Only has an effect on objects with a geometry LOD. Regular road elements available in VBS are not objects, and therefore do not change their properties.

Syntax

Syntax:road setConeIndex [dry, wet]
Parameters:
  • road: Object - Object which can be crossed by vehicles.
  • dry: Number - Cone index for dry conditions.
  • wet: Number - Maximum cone index that can be reached in wet conditions.
Return Value:Nothing

Examples

Examples:
road1 setConeIndex [100, 200]

Additional Information

See also: getConeIndex, setMaxRainDensity, getSurfaceDrainage
Multiplayer:
Problems:

Notes