Documentation/Engine/Units/accessory truck data
The accessory_truck_data unit class defines basic information, cameras, fallback rules, and required accessories for the player's truck. Units of this type are defined in /def/vehicle/truck/<brand.model>/data.sii.
Many common attributes are inherited from accessory_data. Required attributes are bolded.
|info||array<string>||Two info members are typically defined for accessory_truck_data:
info: "@@brand_peterbilt@@" // The truck brand info: "@@series_peterbilt_579@@" // The truck model
|require||array<token>||Accessory types which should be required, regardless of the vehicle configuration, should be defined in accessory_truck_data. For more information, see accessory_data.|
|behind_camera||link_ptr||The unit name of the camera to use for the orbit (2) view. Typically |
|interior_camera||link_ptr||The unit name of the camera to use for the interior (1) view. Typically |
|interior_camera_oculus||link_ptr||The unit name of the camera to use for the interior (1) view when using a head-mounted display. Typically |
|window_camera||link_ptr||The unit name of the camera to use in the lean-out (5) view. Typically |
|bumper_camera||link_ptr||The unit name of the camera to use in the bumper (6) view. Typically |
|cabin_camera||link_ptr||The unit name of the camera to use for the cabin-top (4) view. Typically |
|wheel_camera||link_ptr||The unit name of the camera to use in the wheel (7) view. Typically |
|top_camera||link_ptr||The unit name of the camera to use for the overhead (3) view. Typically |
|tv_camera||link_ptr||The unit name of the camera to use in TV (8) view. Typically |
|wander_camera||link_ptr||The unit name of the camera to use in wander mode. Typically |
|debug_camera||link_ptr||The unit name of the camera to use for the developer/fly camera (0). Typically |
|fallback||array<string>||Each member contains a specially-formatted string which defines an accessory type (token) and the relative path to an SII file with a safe fallback accessory defined. So a fallback rule for |
Accessories in the accessory folder are handled somewhat specially. For example, a rule for
Note: There are 15 required fallback rules: chassis, cabin, engine, transmission, f_tire, f_disc, f_hub, f_nuts, r_tire, r_disc, r_hub, r_nuts, head_light, paint_job, interior. It is generally advisable to include a rule for steering_w if the truck has interchangeable steering wheels.