Brushes
Trails Brush (3.8)
Used to create a set of waypoints for AI units to follow. The trail can then be referred to in a game script.
To begin creating a new trail, left click on the terrain to place down way points. Right click to delete the most recent way point. When you've finished, enter a name for the trail in the text field and click "create".
To modify an existing trail, double click on it on the list. This will recreate the trail, allowing you to left click to add new way points, or right click to delete the previous ones. To save your changes, click "apply".
There are three types of trails you can create. To change which type a trail is, click on the pull down menu while editing the trail.
- One Way - Units will always follow this trail in the order the way points are created.
- Two Way - Like One Way, but when the unit is told to "enter" the trail, if it is currently closer to the end of the trail than the beginning, it will choose to follow the trail in reverse order.
- Looping - This trail's final way point will connect back to its initial way point, creating an infinite loop.
Additional Notes
- Trails can be assigned to a specific team, just like objects can. If a team is selected on the Teams tools, new trails will be assigned to said team, and only that team's trails will appear on the list of trails. However, any team's trails can be called on by any team. Trails can also not be assigned to any team. So the only benefit you'd get from assigning trails to teams is the convenience of organization within the studio.
- When ordered to enter a looping trail, units will still travel the trail's way points in order, starting with the first. The direction your trail goes in matters!
- While it is possible for two trails' way points to share coordinates, this is not recommended, as it can very often cause AI units to fail.