The trailer_configuration unit class is used to collect the chassis of a given configuration for an ownable trailer, define which body set(s) are valid for that configuration, and define which configurations are “equivalent” for the purposes of trailer configuration.
|name||string||Full name of the configuration for UI display.|
|icon||string||Path relative to |
|chain_type||token||Defines the chain type (e.g. single, double, rmdouble, etc)|
|equivalency||token||Trailer configurations with matching equivalency tokens can be switched during gameplay using the Trailer Configuration menu. This must be set explicitly — Configurations with blank equivalency attributes will not match.|
|chassis||array<string>||Array of paths to chassis definitions for the trailer configuration (e.g. |
|body_sets||array<owner_ptr> (trailer_body_set)||Array of compatible trailer_body_sets with this configuration. This array is usually automatically gathered from a sub-folder with the same name as the base configuration file (name of the file to first dot, so configuration "single3.sii" or "single3.mymod.sii" should have body sets in folder "/def/vehicle/trailer_owned/<brand.model>/configurations/single3"). Body sets can also be defined and linked explicitly within the configuration definition. Each trailer configuration must have at least one valid body set.|