Difference between revisions of "Documentation/Engine/Units/journey events road event"
< Documentation | Engine | Units
Jump to navigation
Jump to search
m (→Attributes: Removed obsolete information about set_idx) |
(Created page with "The '''journey_events_road_event''' unit class is used to define Random Road Events. == Attributes == {|class="wikitable" !Name !Documentation...") |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''journey_events_road_event''' unit class is used to define [[ | + | The '''journey_events_road_event''' unit class is used to define [[Engine/Random_Road_Events|Random Road Events]]. |
− | |||
− | |||
== Attributes == | == Attributes == | ||
Line 18: | Line 16: | ||
|unsigned | |unsigned | ||
| | | | ||
− | | | + | |Event's set. |
|- | |- | ||
|start_cutscene | |start_cutscene | ||
Line 32: | Line 30: | ||
|layer_cutscenes | |layer_cutscenes | ||
|array<link_ptr> | |array<link_ptr> | ||
− | | | + | |NULL |
− | |Array of cutscenes placed between start and end cutscenes. | + | |Array of layer cutscenes (cutscenes placed between start and end cutscenes). |
|- | |- | ||
|mirror_cutscenes | |mirror_cutscenes | ||
|array<link_ptr> | |array<link_ptr> | ||
− | | | + | |NULL |
− | | | + | |Array of layer cutscenes for mirror event. Check '''mirror_active''' attributes for more info. |
|- | |- | ||
|layer_min_curve | |layer_min_curve | ||
|array<float> | |array<float> | ||
− | | | + | |NULL |
|Minimal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of '''layer_cutscenes''' array. | |Minimal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of '''layer_cutscenes''' array. | ||
|- | |- | ||
|layer_max_curve | |layer_max_curve | ||
|array<float> | |array<float> | ||
− | | | + | |NULL |
|Maximal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of '''layer_cutscenes''' array. | |Maximal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of '''layer_cutscenes''' array. | ||
|- | |- | ||
|min_length | |min_length | ||
|float | |float | ||
− | | | + | |-1.0 |
|Minimal length of whole random event (in meters). | |Minimal length of whole random event (in meters). | ||
|- | |- | ||
Line 62: | Line 60: | ||
|min_shoulder_space | |min_shoulder_space | ||
|float | |float | ||
− | | | + | |-1.0 |
|Minimal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. | |Minimal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. | ||
|- | |- | ||
Line 69: | Line 67: | ||
|100.0 | |100.0 | ||
|Maximal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. | |Maximal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
− |
Revision as of 14:20, 18 May 2018
The journey_events_road_event unit class is used to define Random Road Events.
Attributes
Name | Type | Default Value | Description |
---|---|---|---|
name | string | Name of the road event (description). | |
set_idx | unsigned | Event's set. | |
start_cutscene | link_ptr | NULL | Start cutscene of the road event. |
end_cutscene | link_ptr | NULL | End cutscene of the road event. |
layer_cutscenes | array<link_ptr> | NULL | Array of layer cutscenes (cutscenes placed between start and end cutscenes). |
mirror_cutscenes | array<link_ptr> | NULL | Array of layer cutscenes for mirror event. Check mirror_active attributes for more info. |
layer_min_curve | array<float> | NULL | Minimal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of layer_cutscenes array. |
layer_max_curve | array<float> | NULL | Maximal allowed curvature of the road for layer cutscenes (in degress). It has to be defined for each item of layer_cutscenes array. |
min_length | float | ||
Minimal length of whole random event (in meters). | |||
max_length | float | 10000.0 | Maximal length of whole random event (in meters). |
min_shoulder_space | float | ||
Minimal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. | |||
max_shoulder_space | float | 100.0 | Maximal shoulder space of the road (in meters). Compared with road look shoulder_space_left/shoulder_space_right attributes. |