Documentation/Engine/Units/cargo model match

From SCS Modding Wiki
< Documentation‎ | Engine‎ | Units
Revision as of 00:52, 15 May 2019 by Smarty (talk | contribs) (Created page with "The '''cargo_model_match''' unit class is used to match cargo models with appropriate trailers. Units of this type are f...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.