Difference between revisions of "Documentation/Engine/Units/vehicle accessory"

From SCS Modding Wiki
Jump to navigation Jump to search
(Created page with "The '''vehicle_accessory''' unit class is used to 'attach' certain types of accessories and their data to vehicle and trailer configurations. Units of this type are typically...")
 
(Suitable Accessory Data Types)
Line 28: Line 28:
 
*[[Documentation/Engine/Units/accessory_headlight_data|accessory_headlight_data]]
 
*[[Documentation/Engine/Units/accessory_headlight_data|accessory_headlight_data]]
 
*[[Documentation/Engine/Units/accessory_interior_data|accessory_interior_data]]
 
*[[Documentation/Engine/Units/accessory_interior_data|accessory_interior_data]]
 +
*[[Documentation/Engine/Units/accessory_truck_data|accessory_trailer_data]]
 +
*[[Documentation/Engine/Units/accessory_truck_data|accessory_trailer_body_data]]
 
*[[Documentation/Engine/Units/accessory_transmission_data|accessory_transmission_data]]
 
*[[Documentation/Engine/Units/accessory_transmission_data|accessory_transmission_data]]
 
*[[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]]
 
*[[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]]

Revision as of 14:20, 21 May 2019

The vehicle_accessory unit class is used to 'attach' certain types of accessories and their data to vehicle and trailer configurations. Units of this type are typically nameless and declared within the same context as the configuration that owns/uses them.

Attributes

Name Type Default Value Description
wear float 0.0 This attribute is used to track damage and wear to the accessory. 0 corresponds to an unworn state and 1 corresponds to a completely worn state.
data_path string Full path to the SII file containing a suitable accessory data unit.

Suitable Accessory Data Types

These accessory data types can be used by vehicle_accessory:

Related Units