Changes

Jump to navigation Jump to search

Documentation/Engine/Random Road Events

1,845 bytes added, 10:36, 22 May 2018
no edit summary
name: "Accident country specific plane (1)"
}
}
</pre>
 
== Defining cutscenes for RE ==
 
All three main attributes of RE: '''start_cutscene''', '''end_cutscene''' and '''layer_cutscenes''' are of the same type: [[Documentation/Engine/Units/journey_events_cutscene|'''journey_events_cutscene''']] and are listed/defined in "'''/def/world/journey_cutscene.sii'''".
 
These cutscenes are then linked to RE via unit names. Eg. "'''''j_cut.acc_stop_li'''''" from example definition below is featured as start cutscene of example RE definition above.
 
Example '''journey_cutscene.sii''' file definition:
<pre>
SiiNunit
{
# For modders: Please do not modify this file if you want to add a new entry. Create in
# this directory a new file "<base_name>.<idofyourmod>.sii" where <base_name> is name of
# base file without the extension (e.g. "city" for "/def/city.sii") and <idofyourmod> is
# some string which is unlikely to conflict with other mod.
#
# Warning: Even if the units are specified in more than one source file, they share the
# same namespace so suffixes or prefixes should be used to avoid conflicts.
 
journey_events_cutscene : j_cut.acc_stop_li
{
cutscene_tokens[]: acc_stop_li1
cutscene_tokens[]: acc_stop_li2
left_width: 80.0 // [m]
right_width: 5.0 // [m]
sequence_mode: pseudo
}
journey_events_cutscene : j_cut.acc_mid
{
cutscene_tokens[]: acc_mid_1
cutscene_tokens[]: acc_mid_2
cutscene_tokens[]: acc_mid_3
 
left_width: 15.0 // [m]
right_width: 15.0 // [m]
sequence_mode: pseudo
}
journey_events_cutscene : j_cut.acc_plane
{
cutscene_tokens[]: acc_rare_1
 
left_width: 35.0 // [m]
right_width: 25.0 // [m]
sequence_mode: pseudo
}
}
</pre>

Navigation menu