Eden Editor: Waypoint: Difference between revisions
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "Position3D" to "Position3D") |
||
(17 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{TOC|side}} | |||
A waypoint defines the destination for a group. Waypoints are ordered sequentially, and only one can be active at any given time. | |||
== Waypoint Types == | |||
Each waypoint has a specific type, which decides what the group has to do to complete the waypoint. A group led by an AI character will pursue the waypoint automatically, but the player is expected to issue necessary orders when in charge of the group. | |||
You can use any type of waypoint from the '''Waypoints''' list in the asset browser. Because waypoints are added to groups, the existing character, group or any of its waypoints has to be selected in order for new waypoint to be added. | |||
[[File:3den waypoint add.gif|center]] | |||
=== MOVE Waypoint Shortcut === | |||
Alternatively, you can quickly add a MOVE waypoint by '''holding Shift''' and pressing the '''right mouse button'''. | |||
[[File:3den waypoint addQuick.gif|center]] | |||
== Attaching Waypoints == | |||
A waypoint can also be attached to an object. Some waypoint types even require it, like DESTROY or GET IN. | |||
To attach a waypoint, drag it to an object. Similarly, you can detach it by dragging it away. Moving the object around will move all the attached waypoints as well. | |||
The attached waypoint is visualized by a different icon outline ([[File:3den waypoint outlineAttached.png.png]] instead of [[File:3den waypoint outline.png]]). | |||
[[File:3den_waypoint_attach.gif|center]] | |||
== Waypoint Completion == | |||
The waypoint is completed when requirements set by its type are met, but additional conditions can be added. A scripted condition can be set in attributes, but you can also connect the waypoint to one or more [[Eden Editor: Trigger|triggers]] using '''Set Waypoint Activation''' [[Eden Editor: Connecting|connection]]. The waypoint will be completed only once all the connected triggers are active. | |||
[[File:3den waypoint trigger.gif|center]] | |||
Once a waypoint is completed, the group will move to the next one. If there is none, the group will remain where it is. | |||
You can find more about the waypoint in the tooltips of their attributes. | |||
== Attributes == | == Attributes == | ||
<onlyinclude> | <onlyinclude> | ||
<!-- Exported from the game by BIS_fnc_3DENExportAttributes. Manual edits may be replaced by future exports. --> | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! colspan="3" | <big>Info</big> | ! colspan="3" | <big>Info</big> | ||
Line 9: | Line 37: | ||
! Category | ! Category | ||
! class="unsortable" | Description | ! class="unsortable" | Description | ||
! | ! Property | ||
! Type | ! Type | ||
|- | |- | ||
| '''Type''' | | '''Type''' | ||
| | | Type | ||
| Waypoint type defines what | | Waypoint type defines what the group will do when the waypoint becomes active, and the condition when it becomes completed. Applies mainly to AI-led groups, as players will not be prompted to perform any specific actions, even though the waypoint completion condition is the same. | ||
Some waypoints have special attributes, which are available | Some waypoints have special attributes, which are only available the next time you access the attribute window. | ||
| <small> | | <small>{{hl|itemClass}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Description''' | | '''Description''' | ||
| | | Init | ||
| Text visible for the player next to waypoint icon in the scene. | | Text visible for the player next to the waypoint icon in the scene. | ||
| <small> | | <small>{{hl|description}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Order''' | | '''Order''' | ||
| | | Init | ||
| Order in which waypoints follow. When changing order, the waypoint will take position of the selected one, pushing all other further down. | | Order in which waypoints follow. When changing order, the waypoint will take position of the selected one, pushing all other further down. | ||
| <small> | | <small>{{hl|order}}</small> | ||
| | | | ||
|- | |- | ||
| ''' | | '''Identified''' | ||
| | | Init | ||
| System name of the waypoint, used for identification in scripts. | | System name of the waypoint, used for identification in scripts. | ||
| <small> | | <small>{{hl|name}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Position''' | | '''Position''' | ||
| | | Transformation | ||
| World coordinates in meters. X goes from East | | World coordinates in meters. X goes from West to East, Y from South to North and Z is height above terrain. | ||
| <small> | | <small>{{hl|position}}</small> | ||
| [[Position3D]] | | [[Position#Introduction|Position3D]] | ||
|- | |- | ||
| '''Placement Radius''' | | '''Placement Radius''' | ||
| | | Transformation | ||
| Placement radius in meters. The entity will start | | Placement radius in meters. The entity will start at a random position within the radius. | ||
| <small> | | <small>{{hl|placementRadius}}</small> | ||
| [[Number]] | | [[Number]] | ||
|- | |- | ||
| '''Completion Radius''' | | '''Completion Radius''' | ||
| | | Transformation | ||
| Distance in meters in which a group | | Distance in meters in which a group member has to be in order for the waypoint to be considered completed. | ||
| <small> | | <small>{{hl|completionRadius}}</small> | ||
| [[Number]] | | [[Number]] | ||
|- | |- | ||
| '''Combat Mode''' | | '''Combat Mode''' | ||
| | | State | ||
| | | Controls how and when the group will choose to engage enemy targets. | ||
Available options: | Available options: | ||
* '''Unchanged''' - No change compared to the previous state. | * '''Unchanged''' - No change compared to the previous state. | ||
* '''Forced Hold Fire''' - The group will never fire under any circumstances. | * '''Forced Hold Fire''' - The group will never fire under any circumstances. | ||
* ''' | * '''Do Not Fire Unless Fired Upon, Keep Formation''' - Group members will hold fire unless directly threatened. | ||
* ''' | * '''Do Not Fire Unless Fired Upon''' - Group members will move into positions from which they can shoot at the enemy, but will hold fire unless directly threatened. | ||
* '''Open Fire, Keep Formation''' - Default combat mode. Group members will fire upon any target in range, while staying in formation. The group leader may order individual members to engage specific targets. | * '''Open Fire, Keep Formation''' - Default combat mode. Group members will fire upon any target in range, while staying in formation. The group leader may order individual members to engage specific targets. | ||
* '''Open Fire''' - Group members will fire at any suitable target in range, leaving formation to find suitable shooting position. | * '''Open Fire''' - Group members will fire at any suitable target in range, leaving the formation to find a suitable shooting position. | ||
| <small> | | <small>{{hl|combatMode}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| ''' | | '''Behavior''' | ||
| | | State | ||
| | | Behavior pattern of the group. | ||
Available options: | Available options: | ||
* '''Unchanged''' - No change compared to the previous state. | * '''Unchanged''' - No change compared to the previous state. | ||
* '''Careless''' - The same as 'Safe', except that it | * '''Careless''' - The same as 'Safe', except that it will not be switched automatically after spotting a threat. Use with caution, player may perceive AIs in this behavior as defective. | ||
* '''Safe''' - Non-combat | * '''Safe''' - Non-combat behavior. Characters have weapons lowered. Vehicles follow roads and use lights. They automatically switch to 'Aware' upon spotting a threat. | ||
* '''Aware''' - Default | * '''Aware''' - Default behavior. Characters are in ready position. Vehicles prefer roads, do not use lights and their passengers will disembark to counter threats. | ||
* '''Combat''' - Firefight | * '''Combat''' - Firefight behavior. Characters break formation and take cover. Vehicles ignore roads and do not use lights. | ||
* '''Stealth''' - Characters break formation and move | * '''Stealth''' - Characters break formation and move cautiously, preferring cover and going prone. Vehicles prefer roads, but do not use lights. | ||
| <small> | | <small>{{hl|behaviour}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Formation''' | | '''Formation''' | ||
| | | State | ||
| | | Default group formation. Based on the combat mode, group members may ignore the formation in 'Combat' and 'Stealth' modes. | ||
Available options: | Available options: | ||
* '''Unchanged''' | * '''Unchanged''' | ||
Line 93: | Line 121: | ||
* '''Column''' | * '''Column''' | ||
* '''File''' | * '''File''' | ||
* '''Staggered | * '''Staggered Col.''' | ||
* '''Echelon | * '''Echelon L.''' | ||
* '''Echelon | * '''Echelon R.''' | ||
* '''Diamond''' | * '''Diamond''' | ||
| <small> | | <small>{{hl|formation}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''SpeedMode''' | | '''SpeedMode''' | ||
| | | State | ||
| | | Default travel speed of the group. In Combat and Stealth behavior modes, group members will try to prioritize this setting. | ||
Available options: | Available options: | ||
* '''Unchanged''' | * '''Unchanged''' | ||
Line 110: | Line 138: | ||
* '''Full''' | * '''Full''' | ||
| <small> | | <small>{{hl|speedMode}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Condition''' | | '''Condition''' | ||
| | | Expression | ||
| Repeatedly calculated condition, must return boolean expression. When the waypoint type conditions are met and this expression returns true, the waypoint is completed. | | Repeatedly calculated condition, must return boolean expression. When the waypoint type conditions are met and this expression returns true, the waypoint is completed. | ||
Passed variables are: | Passed variables are: | ||
* this - group leader | * this - group leader | ||
* thisList - array with all group members | * thisList - array with all group members | ||
| <small> | | <small>{{hl|condition}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''On Activation''' | | '''On Activation''' | ||
| | | Expression | ||
| Expression called when the waypoint is completed. | | Expression called when the waypoint is completed. | ||
Passed variables are: | Passed variables are: | ||
* this - group leader | * this - group leader | ||
* thisList - array with all group members | * thisList - array with all group members | ||
| <small> | | <small>{{hl|onActivation}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Script''' | | '''Script''' | ||
| | | Expression | ||
| Script executed when 'SCRIPTED' waypoint type is selected. The waypoint will be completed once the script is finished. | | Script executed when 'SCRIPTED' waypoint type is selected. The waypoint will be completed once the script is finished. | ||
| <small> | | <small>{{hl|script}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Map Visibility''' | | '''Map Visibility''' | ||
| | | Visibility | ||
| Make the waypoint visible for the player | | Make the waypoint visible for the player on the map. | ||
| <small> | | <small>{{hl|show2D}}</small> | ||
| [[ | | [[Boolean]] | ||
|- | |- | ||
| '''Scene Visibility''' | | '''Scene Visibility''' | ||
| | | Visibility | ||
| Make the waypoint visible for the player in the scene. | | Make the waypoint visible for the player in the scene. | ||
| <small> | | <small>{{hl|show3D}}</small> | ||
| [[ | | [[Boolean]] | ||
|- | |- | ||
| '''Timer Values''' | | '''Timer Values''' | ||
| | | Timer | ||
| Time in seconds passed between when the waypoint would be considered complete and when it actually completes. Selected randomly in a range from Min to Max, gravitating towards Mid. | | Time in seconds passed between when the waypoint would be considered complete and when it actually completes. Selected randomly in a range from Min to Max, gravitating towards Mid. | ||
| <small> | | <small>{{hl|timeout}}</small> | ||
| [[Array]] in format [min, mid, max] | | [[Array]] in format [min, mid, max] | ||
|- | |- | ||
| '''Effect Condition''' | | '''Effect Condition''' | ||
| | | Effects | ||
| Condition for effects to be played, must return boolean expression. | | Condition for effects to be played, must return boolean expression. | ||
| <small> | | <small>{{hl|effectCondition}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Sound''' | | '''Sound''' | ||
| | | Effects | ||
| Sound | | Sound played upon activation. | ||
| <small> | | <small>{{hl|sound}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Voice''' | | '''Voice''' | ||
| | | Effects | ||
| Sound spoken by the first unit which activated the trigger. | | Sound spoken by the first unit which activated the trigger. | ||
| <small> | | <small>{{hl|voice}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Environment''' | | '''Environment''' | ||
| | | Effects | ||
| Environment sounds played upon activation. | | Environment sounds played upon activation. | ||
| <small> | | <small>{{hl|soundEnvironment}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''Music''' | | '''Music''' | ||
| | | Effects | ||
| Music played upon activation. Replaces previously playing music track. | | Music played upon activation. Replaces previously playing music track. | ||
| <small> | | <small>{{hl|music}}</small> | ||
| [[String]] | | [[String]] | ||
|- | |- | ||
| '''UI Overlay''' | | '''UI Overlay''' | ||
| | | Effects | ||
| User interface overlay shown upon activation. | | User interface overlay shown upon activation. | ||
| <small> | | <small>{{hl|title}}</small> | ||
| [[String]] | | [[String]] | ||
|} | |} | ||
</onlyinclude> | </onlyinclude> | ||
== See Also == | |||
*[[Waypoints]] | |||
*[[Waypoint|Data Type Waypoint]] | |||
[[Category:Eden Editor: Asset Types|Waypoints]] | [[Category:Eden Editor: Asset Types|Waypoints]] |
Latest revision as of 16:55, 5 January 2022
A waypoint defines the destination for a group. Waypoints are ordered sequentially, and only one can be active at any given time.
Waypoint Types
Each waypoint has a specific type, which decides what the group has to do to complete the waypoint. A group led by an AI character will pursue the waypoint automatically, but the player is expected to issue necessary orders when in charge of the group.
You can use any type of waypoint from the Waypoints list in the asset browser. Because waypoints are added to groups, the existing character, group or any of its waypoints has to be selected in order for new waypoint to be added.
MOVE Waypoint Shortcut
Alternatively, you can quickly add a MOVE waypoint by holding Shift and pressing the right mouse button.
Attaching Waypoints
A waypoint can also be attached to an object. Some waypoint types even require it, like DESTROY or GET IN. To attach a waypoint, drag it to an object. Similarly, you can detach it by dragging it away. Moving the object around will move all the attached waypoints as well. The attached waypoint is visualized by a different icon outline ( instead of ).
Waypoint Completion
The waypoint is completed when requirements set by its type are met, but additional conditions can be added. A scripted condition can be set in attributes, but you can also connect the waypoint to one or more triggers using Set Waypoint Activation connection. The waypoint will be completed only once all the connected triggers are active.
Once a waypoint is completed, the group will move to the next one. If there is none, the group will remain where it is.
You can find more about the waypoint in the tooltips of their attributes.
Attributes
Info | Development | |||
---|---|---|---|---|
Name | Category | Description | Property | Type |
Type | Type | Waypoint type defines what the group will do when the waypoint becomes active, and the condition when it becomes completed. Applies mainly to AI-led groups, as players will not be prompted to perform any specific actions, even though the waypoint completion condition is the same.
Some waypoints have special attributes, which are only available the next time you access the attribute window. |
itemClass | String |
Description | Init | Text visible for the player next to the waypoint icon in the scene. | description | String |
Order | Init | Order in which waypoints follow. When changing order, the waypoint will take position of the selected one, pushing all other further down. | order | |
Identified | Init | System name of the waypoint, used for identification in scripts. | name | String |
Position | Transformation | World coordinates in meters. X goes from West to East, Y from South to North and Z is height above terrain. | position | Position3D |
Placement Radius | Transformation | Placement radius in meters. The entity will start at a random position within the radius. | placementRadius | Number |
Completion Radius | Transformation | Distance in meters in which a group member has to be in order for the waypoint to be considered completed. | completionRadius | Number |
Combat Mode | State | Controls how and when the group will choose to engage enemy targets.
Available options:
|
combatMode | String |
Behavior | State | Behavior pattern of the group.
Available options:
|
behaviour | String |
Formation | State | Default group formation. Based on the combat mode, group members may ignore the formation in 'Combat' and 'Stealth' modes.
Available options:
|
formation | String |
SpeedMode | State | Default travel speed of the group. In Combat and Stealth behavior modes, group members will try to prioritize this setting.
Available options:
|
speedMode | String |
Condition | Expression | Repeatedly calculated condition, must return boolean expression. When the waypoint type conditions are met and this expression returns true, the waypoint is completed.
Passed variables are:
|
condition | String |
On Activation | Expression | Expression called when the waypoint is completed.
Passed variables are:
|
onActivation | String |
Script | Expression | Script executed when 'SCRIPTED' waypoint type is selected. The waypoint will be completed once the script is finished. | script | String |
Map Visibility | Visibility | Make the waypoint visible for the player on the map. | show2D | Boolean |
Scene Visibility | Visibility | Make the waypoint visible for the player in the scene. | show3D | Boolean |
Timer Values | Timer | Time in seconds passed between when the waypoint would be considered complete and when it actually completes. Selected randomly in a range from Min to Max, gravitating towards Mid. | timeout | Array in format [min, mid, max] |
Effect Condition | Effects | Condition for effects to be played, must return boolean expression. | effectCondition | String |
Sound | Effects | Sound played upon activation. | sound | String |
Voice | Effects | Sound spoken by the first unit which activated the trigger. | voice | String |
Environment | Effects | Environment sounds played upon activation. | soundEnvironment | String |
Music | Effects | Music played upon activation. Replaces previously playing music track. | music | String |
UI Overlay | Effects | User interface overlay shown upon activation. | title | String |