Changes

Jump to navigation Jump to search

Documentation/Engine/Units/trailer def

103 bytes removed, 02:01, 15 May 2019
Attributes: Much-needed update
|string
|
|The unit name of the '''trailer''' unit to be enabled for the cargo. This attribute can safely refer to units which aren't present.(Only for legacy usage when defined in /def/cargo/<cargo_name>/)
|-
|massgross_trailer_weight_limit
|float
|
|The total mass maximum technical or logical combined weight of the trailer and its cargo for this trailer configuration in kilograms (kgtake into account bridge formula, and other similar rules).
|-
|volume_factorchassis_mass
|float
|1.0|The amount mass of cargo relative to what the cargo definition is nominally based on. This allows the game economy to scale the pay per distance for trailers of different sizes hauling the same cargo. ''Added trailer chassis in 1kg.28.''{{Note|For example, if -|body_mass|float||The mass of the cargo definition is nominally based on a 53ft trailer, the volume_factor for a 40ft trailer might be approximately 0.75 (40÷53)body in kg.}}
|-
|length
|float
|0
|The length of the trailer combination in meters. When generating a job this is compared against the '''allowed_trailer_length''' of the source and destination depot [[Documentation/Engine/Units/prefab_data|prefabs]] to determine whether this trailer_def is suitable for the job.
|-
|axles
|uint
|0|The approximate length number of axles in the trailer combination in meters. When generating a job this , which is compared checked against country_data&rarr;mass_limit_per_axle_count to determine the '''allowed_trailer_length''' allowable gross weight.|-|volume|float||The interior volume of the source and destination depot [[Documentationtrailer body in m<sup>3</Engine/Units/prefab_datasup>.|-|body_type|token||prefabs]] to determine whether this trailer_def is suitable for Sets the body type of the job. The valid range is [0trailer configuration, 255]. If set which determines which cargoes are allowed to 0, no restrictions are appliedbe carried. ''Added in 1.28|-|chain_type|token||Sets the trailer chain type of the trailer configuration.''
|-
|countrycountry_validity
|array&lt;token&gt;
|
|Each member is a <!--[[Documentation/Engine/Units/country_data|country]]-->country (or a state in ATS) where this trailer_def will be suitable for generated jobs. Both the origin and destination of a job must be in the ''country'' array for the trailer_def to be suitable for it. If unset, then the trailer_def is suitable in all countries. ''Added in 1.28.''
For example, the following would be limited to only Nevada and Arizona:
<pre>country[]: azarizonacountry[]: nvnevada</pre>|-|cog_offset|array&lt;float3&gt;||Each member defines the offset of the cargo center of gravity from the calculated value for each trailer in the trailer configuration, starting with the ''master'' trailer and iterating through the ''slave'' trailers. (X, Y, Z) corresponds to lateral, vertical, and longitudinal offsets respectively.
|-
|cargo_mass_ratio
309
edits

Navigation menu