Changes

Jump to navigation Jump to search

Documentation/Engine/Random Road Events

1,043 bytes added, 07:44, 23 May 2018
Total length
=== Total length ===
TODOThe total length of RE is defined as: <pre>total_length = (distance between start cutscene placement and end cutscene placement) + (start cutscene right width) + (end cutscene left width)</pre> Depending on defined '''max/min_length''' there can be three situations by spawning of the RE:* '''max_length''' not defined - Start and end cutscenes are placed in the way that '''total_length''' is the same as road length and the RE occupies.* '''max_length''' < '''total_length''' - Start and end cutscenes placements are translated closer to each other so that computed '''total_length''' is equal to '''max_length'''.* '''min_length''' is defined and '''min_length''' > '''total_length''' - RE will not be spawned. {{Note|In case of very short road segment it is possible that no layer cutscene will fit into the middle, so one can use '''min_length''' to prevent this.}} {{Note|In case that '''traffic_block''' is set to true then there must be '''35m of uninterrupted''' roads in front and the back of RE, otherwise event will not spawn.}}
=== Curvature ===

Navigation menu