Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.35

27 bytes added, 16:19, 13 May 2019
Trailer chains: Corrected attribute name and syntax
{{Note|Support for wildcards has been removed to avoid the unnecessary complexity.}}
{{Tip|If you have used (now obsolete) attribute '''allowed_tractor''', the similar functionality can be achieved by setting '''spawn_ratio: 0.0''' for trailers which have been using it. This way, they won't be chosen for any vehicle unless explicitly set in '''trailer_chaintrailer_chains'''.}}
Each trailer chain element can be specified either by trailer type name (a random trailer model of that type will be spawned)
or directly by traffic trailer unit name. Optionally, for each element, the minimum and maximum count of occurrence can be specified. Elements and counts are separated by '|'.
'''Examples:'''
'''trailer_chain<code>trailer_chains[]: "semi_trailer''' "</code> - the vehicle will have one trailer of type '''semi_trailer'''
'''trailer_chain<code>trailer_chains[]: "traffic_trailer.first | traffic_trailer.middle 2-4 | traffic_trailer.last''' "</code> - trailer chain with specific elements, 'traffic_trailer.middle' can occur 2-4 times.
=== Spawn density rules ===
309
edits

Navigation menu