Description
The unit vehicle_addon_accessory is used to put addon parts onto a vehicle. It has a unlimited amount of slots that can be used.
However to be able to use a slot the model of the addon accessory must contain that slot.
In base game if the model has a locator slot_1 you can put a hookup onto that slot
You can also put hookups onto non standard slots such as the light_h_* locators this can be usefull in local modding such as if you are making a headlight mod you can use a hookup on the headlight
Attributes
| Attribute | Description |
|---|---|
| slot_name | A list/array of the slot names for the realtive hookup. (slot_*, light_h_*, etc) |
| slot_hookup | A list/array of the hookup names these are placed on the realtive slot defined in the attribute slot_name. |
| paint_color (1.53) | The colour of the accessory if its paintable. |
| data_path | A path to the accessory data that you want to be added. |
| refund (euro) | The ammount of money in euros you get when refunding this part. |
Code Example - No Hookups
1
2
3
4
5
6
7
vehicle_accessory: _nameless.123.1234.1234 {
slot_name : 0
slot_hookup : 0
paint_color : (1, 1, 1)
data_path : "/def/vehicle/truck/scania.s_2016/accessory/f_inlay_cab/stock.sii"
refund : 1400
}
Code Example - Base Game Hookups
1
2
3
4
5
6
7
8
9
10
11
vehicle_accessory: _nameless.123.1234.1234 {
slot_name : 2
slot_name[0] : slot_10
slot_name[1] : slot_12
slot_hookup : 2
slot_hookup[0] : "smalllight1.addon_hookup" // This will be placed on 'slot_10'
slot_hookup[1] : "smalllight1.addon_hookup" // This will be placed on 'slot_12'
paint_color : (1, 1, 1)
data_path : "/def/vehicle/truck/scania.s_2016/accessory/f_inlay_cab/stock.sii"
refund : 1400
}
Code Example - Local Modded Hookups
1
2
3
4
5
6
7
8
9
10
11
12
vehicle_accessory: _nameless.123.1234.1234 {
slot_name : 1
slot_name[0] : light_h_0
slot_hookup : 1
slot_hookup[0] : "baldy.headlights" // This will be placed on 'light_h_0'
// 'light_h_0' is not a normal slot visible in game but since slots are just locators this will work
// However the hookup will need to be defined in the 'bus_job_log' unit
paint_color : (1, 1, 1)
data_path : "/def/vehicle/truck/scania.s_2016/accessory/f_light_chs/shape2_p.sii"
refund : 1200
}