Difference between revisions of "Documentation/Engine/Units/cargo model match"

From SCS Modding Wiki
Jump to navigation Jump to search
(Created page with "The '''cargo_model_match''' unit class is used to match cargo models with appropriate trailers. Units of this type are f...")
 
(Created page with "The '''cargo_model_match''' unit class is used to match cargo models with appropriate trailers. Units of this type are f...")
 
(No difference)

Latest revision as of 00:52, 15 May 2019

The cargo_model_match unit class is used to match cargo models with appropriate trailers. Units of this type are found in /def/cargo/<cargo_name>/model_*.sii

Attributes

Name Type Default Value Description
compatible_body array<string> Paths to definitions of compatible bodies and/or chassis. The expected unit type is either accessory_chassis_data or accessory_trailer_body_data.
data_path array<string> Paths to definitions of compatible cargo accessories, one of which will be chosen pseudo-randomly during job generation. The expected unit type is accessory_cargo_data.