[Bug]: There is no way to autofill signals, even with a straight section of track, in the AI API #11099
Labels
component: AI/Game script (squirrel)
This issue is related to Squirrel (Scripting language)
enhancement
Issue would be a good enhancement; we accept Pull Requests!
Version of OpenTTD
13.1, Win 10
Expected result
Human players can drag the signal tool over a straight section of track to place signals on the entire section (with pre-chosen spacing). They can also hold down Ctrl to place signals until the next junction.
Both humans and AIs can build a straight section of track in a single command. For AIs this is the AIRail::BuildRail command.
As building signals are almost as important as building tracks, and we already have a way to build a straight section of track in the AI API, it is expected that we should have something similar for building signals too.
Actual result
There is no such function in the AI API, so AIs need to build signals individually, despite being able to build arbitrarily-long straight sections of track in a single command.
Steps to reproduce
Look at the AIRail API reference and observe that no such function exists.
The text was updated successfully, but these errors were encountered: