Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory interior data

19 bytes added, 12:37, 20 June 2017
no edit summary
The '''accessory_interior_data''' unit class is used to define the interior and its animations for the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]]. Units of this type are usually defined in '''/def/vehicle/truck/<makebrand.model>/interior/*.sii''', making heavy use of [[Documentation/Engine/Units#Includes|includes]] via:*'''/def/vehicle/truck/<makebrand.model>/interior/animations.sui''' (animation-related attributes; '''animations_uk.sii''' for RHD vehicles in ETS2)*'''/def/vehicle/truck/<makebrand.model>/interior/dashboard_color.sii''' (dashboard_color array attribute)*'''/def/vehicle/truck/<makebrand.model>/interior/seat.sui''' (seat adjustment limits; '''seat_uk.sui''' for RHD vehicles in ETS2)
== Attributes ==
|variant
|token
|default|Selects Name of the variant to be used on all for this interior models. If unset, defaults to ''default''and collision.
|-
|look
|token
|default|Selects Name of the look to be used on all for this interior models. If unset, defaults to ''default''.
|-
|ext_model
|ext_variant
|token
|default|Selects Name of the variant to be used on the exterior model. If unset, defaults to ''default''.
|-
|ext_look
|token
|default|Selects Name of the look to be used on the exterior model. If unset, defaults to ''default''.
|-
|''animation attributes''
|resource_tiestring / float (min/max)
|
|There are currently nearly 70 [[Documentation/Engine/Truck_Interior_Animations_and_IDs#Interior_Animations|interior animation]] attributes, plus _min and _max attributes for some with adjustable ranges. Interior animations are typically defined externally in '''animations.sui''' and [[Documentation/Engine/Units#Includes|included]] into the interior definition.
|-
|wiper_delay
|array&lt;float&gt;
|
|Each member defines a delay in seconds between wipe cycles for intermittent wipers. They should generally be in decreasing order because the last wiper mode is continuous. If empty then only continuous mode is available.
|-
|blinker_delay
|float
|0.5|The length of half of the blinker cycle in seconds. The blinker is on for this length of time, and then off for this length of time, etc. Typically included via '''animations.sui'''.
<!-- Hidden until we have a description
|-
-->
|-
|'''dashboard_path'''
|string
|
|panel_intensity_min
|float
|0.01
|The minimum backlight intensity.
|-
|panel_intensity_max
|float
|0.3
|The maximum backlight intensity.
|-
|Each member points to the unit name of a [[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] unit.
|-
|dashboard_color''dashboard colors''
|array&lt;float3&gt;
|
|An array of 16 colors which define the illumination color of dashboard and other dif.lum surfaces in the interior based on the tile they are UV mapped to. Typically included via '''dashboard_color.sui'''.
<!-- Hidden until we have a description
|-
|seat_left_limit
|float
|&#45;0.15|Maximum distance the interior camera can be moved left. Typically included via '''seat.sui'''.
|-
|seat_right_limit
|float
|0.15|Maximum distance the interior camera can be moved right. Typically included via '''seat.sui'''.
|-
|seat_up_limit
|float
|0.15|Maximum distance the interior camera can be moved up. Typically included via '''seat.sui'''.
|-
|seat_down_limit
|float
|&#45;0.15|Maximum distance the interior camera can be moved down. Typically included via '''seat.sui'''.
|-
|seat_front_limit
|float
|&#45;0.1|Maximum distance the interior camera can be moved forward. Typically included via '''seat.sui'''.
|-
|seat_back_limit
|float
|0.2|Maximum distance the interior camera can be moved backward. Typically included via '''seat.sui'''.
<!-- Hidden until we have a description
|-
==Glass Panes and Wipers==
Related units, '''glass_pane_data''' and '''wiper_data''' are defined within the same <code>SiiNunit</code> scope as accessory_interior_data, included via '''/def/vehicle/truck/<makebrand.model>/interior/glass.sui''' (or '''glass.dat''' in some legacy cases):
*[[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] (Used to define surfaces for raindrop accumulation and wiper simulation)
*[[Documentation/Engine/Units/wiper_data|wiper_data]] (Used to define wipers that act on wipe drops from glass panes)
For example:

Navigation menu