309
edits
Changes
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..."
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 ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|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''':
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*[[Documentation/Engine/Units/accessory_cabin_data|accessory_cabin_data]]
*[[Documentation/Engine/Units/accessory_cargo_data|accessory_cargo_data]]
*[[Documentation/Engine/Units/accessory_chassis_data|accessory_chassis_data]]
*[[Documentation/Engine/Units/accessory_engine_data|accessory_engine_data]]
*[[Documentation/Engine/Units/accessory_headlight_data|accessory_headlight_data]]
*[[Documentation/Engine/Units/accessory_interior_data|accessory_interior_data]]
*[[Documentation/Engine/Units/accessory_transmission_data|accessory_transmission_data]]
*[[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]]
</div>
== Related Units ==
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*[[Documentation/Engine/Units/traffic_trailer|traffic_trailer]]
*[[Documentation/Engine/Units/traffic_vehicle|traffic_vehicle]]
*[[Documentation/Engine/Units/trailer|trailer]]
*[[Documentation/Engine/Units/vehicle|vehicle]]
*[[Documentation/Engine/Units/vehicle_addon_accessory|vehicle_addon_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]]
</div>
== Attributes ==
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|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''':
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*[[Documentation/Engine/Units/accessory_cabin_data|accessory_cabin_data]]
*[[Documentation/Engine/Units/accessory_cargo_data|accessory_cargo_data]]
*[[Documentation/Engine/Units/accessory_chassis_data|accessory_chassis_data]]
*[[Documentation/Engine/Units/accessory_engine_data|accessory_engine_data]]
*[[Documentation/Engine/Units/accessory_headlight_data|accessory_headlight_data]]
*[[Documentation/Engine/Units/accessory_interior_data|accessory_interior_data]]
*[[Documentation/Engine/Units/accessory_transmission_data|accessory_transmission_data]]
*[[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]]
</div>
== Related Units ==
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
*[[Documentation/Engine/Units/traffic_trailer|traffic_trailer]]
*[[Documentation/Engine/Units/traffic_vehicle|traffic_vehicle]]
*[[Documentation/Engine/Units/trailer|trailer]]
*[[Documentation/Engine/Units/vehicle|vehicle]]
*[[Documentation/Engine/Units/vehicle_addon_accessory|vehicle_addon_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]]
</div>