1,740
edits
Changes
Jump to navigation
Jump to search
Created page with "thumb|Random event preview|400px Road events (RE) are dynamically generated situations on roads present in ETS2 and ATS. RE are defined from..."
[[File:Engine random event.jpg|thumb|Random event preview|400px]]
Road events (RE) are dynamically generated situations on roads present in ETS2 and ATS.
RE are defined from several cutscenes placed along the road. RE distinguishes 3 types of cutscenes:
* '''Start cutscene''' - The first cutscene of the RE, only one per the RE.
* '''End cutscene''' - The last cutscene of the RE, only one per the RE.
* '''Layer cutscenes''' - Cutscenes between Start and End cutscenes.
According to the length of the RE and the lengths of cutscenes, the space between start and end cutscenes is filled with layer cutscenes.
Composition of RE:
[[File:Engine random event composition.jpg|800px]]
= How are RE defined in the game =
All RE are stored in "'''/def/world/journey_road_event.sii'''" as list of [[Documentation/Engine/Units/journey_events_road_event|'''journey_events_road_event''']] units.
Example RE definition:
<pre>
journey_events_road_event : j_re.acc_plane
{
start_cutscene: j_cut.acc_stop_li
layer_cutscenes[]: j_cut.acc_mid
end_cutscene: j_cut.acc_plane
min_shoulder_space: 3.0
outer_lane_allowed: true
centerline_displacement: true
layer_max_curve[]: 2.0
weight: 10.0
parent: j_re.acc_spec_p
name: "Accident country specific plane (1)"
}
</pre>
Road events (RE) are dynamically generated situations on roads present in ETS2 and ATS.
RE are defined from several cutscenes placed along the road. RE distinguishes 3 types of cutscenes:
* '''Start cutscene''' - The first cutscene of the RE, only one per the RE.
* '''End cutscene''' - The last cutscene of the RE, only one per the RE.
* '''Layer cutscenes''' - Cutscenes between Start and End cutscenes.
According to the length of the RE and the lengths of cutscenes, the space between start and end cutscenes is filled with layer cutscenes.
Composition of RE:
[[File:Engine random event composition.jpg|800px]]
= How are RE defined in the game =
All RE are stored in "'''/def/world/journey_road_event.sii'''" as list of [[Documentation/Engine/Units/journey_events_road_event|'''journey_events_road_event''']] units.
Example RE definition:
<pre>
journey_events_road_event : j_re.acc_plane
{
start_cutscene: j_cut.acc_stop_li
layer_cutscenes[]: j_cut.acc_mid
end_cutscene: j_cut.acc_plane
min_shoulder_space: 3.0
outer_lane_allowed: true
centerline_displacement: true
layer_max_curve[]: 2.0
weight: 10.0
parent: j_re.acc_spec_p
name: "Accident country specific plane (1)"
}
</pre>