Changes

Jump to navigation Jump to search

Documentation/Engine/Units/trailer def

537 bytes added, 16:47, 21 January 2018
no edit summary
{{Note| WIP — [[User:Smarty|Smarty]] ([[User talk:Smarty|talk]]) 23:22, 21 June 2017 (CEST)}}
 
The '''trailer_def''' unit class acts as an intermediary between [[Documentation/Engine/Units/cargo_data|cargo_data]] and [[Documentation/Engine/Units/trailer|trailer]] units. Units of this type are usually defined in '''/def/cargo/<cargo_name>/<trailer_name>.sii''', corresponding to '''def/cargo/<cargo_name>.sii'''. They define which trailer configuration to enable for the cargo, the cargo's mass for that trailer configuration, how that mass is distributed/placed on the trailer and its slave units, and where the configuration is permitted.
|float
|
|The total mass of the cargo for this trailer configuration in kilograms (kg).
|-
|volume_factor
|array<token>
|
|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[]: azcountry[]: nv</pre>
|-
|cog_offset
|<pre>cargo_mass_ratio:&nbsp;1
cargo_mass_ratio[0]:&nbsp;1</pre>
|Each member defines how much of the cargo mass and forces are borne by each trailer in the trailer configuration, starting with the ''master'' trailer and iterating through the ''slave'' trailers. These must add up to 1.
|}
 
== World of Trucks Compatibility ==
World of Trucks jobs will make use of mod trailers if the following conditions are satisfied:
*The '''mass''' is equal to, or greater than the job's cargo mass.
*The '''length''' is compatible with the source and destination prefabs.
*The configuration is valid for the source and destination '''country'''.
*The trailer count is equal to the trailer count of the job (i.e. A multipivot trailer configuration won't be selected for a single-trailer job).
== Related Units ==
*[[Documentation/Engine/Units/cargo_data|cargo_data]]
*[[Documentation/Engine/Units/trailer|trailer]]
309
edits

Navigation menu