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

From SCS Modding Wiki
Jump to navigation Jump to search
(Suitable Accessory Data Types)
(Related Units: remove reference to vehicle_sound_accessory because it's deprecated)
 
Line 42: Line 42:
 
*[[Documentation/Engine/Units/vehicle_addon_accessory|vehicle_addon_accessory]]
 
*[[Documentation/Engine/Units/vehicle_addon_accessory|vehicle_addon_accessory]]
 
*[[Documentation/Engine/Units/vehicle_paint_job_accessory|vehicle_paint_job_accessory]]
 
*[[Documentation/Engine/Units/vehicle_paint_job_accessory|vehicle_paint_job_accessory]]
*[[Documentation/Engine/Units/vehicle_sound_accessory|vehicle_sound_accessory]]
 
 
*[[Documentation/Engine/Units/vehicle_wheel_accessory|vehicle_wheel_accessory]]
 
*[[Documentation/Engine/Units/vehicle_wheel_accessory|vehicle_wheel_accessory]]
 
</div>
 
</div>

Latest revision as of 01:10, 15 October 2020

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