Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

Script action for repairing destroyed bridges

Open FS-21 opened this issue 3 years ago • 3 comments

  • Picks a Bridge Repair Hut from the map that is linked with a bridge with destroyed sections and is reachable by engineers and then send the Taskforce against it.
  • The Taskforce must have any engineer and (Bridge Repair Huts in the map) or the script will end.
  • Puts non-engineers into Area Guard mode when they arrive near the Bridge Repair Hut location.
  • Only are evaluated Bridge Repair Huts that can be reached by the Engineers.

In aimd.ini: [SOMESCRIPTTYPE] ; ScriptType x=10105,n ; integer, mode for selecting Bridge Repair Huts

  • The possible argument values are: 0 -> Pick the closest 1 -> Pick the Farthest -1 -> Pick Random

FS-21 avatar Nov 08 '22 15:11 FS-21

Nightly build for this pull request:

github-actions[bot] avatar Nov 08 '22 15:11 github-actions[bot]

Internal rewrite of the feature.

Thanks to Starkku I don't need to do a pathfinding routine, simplifying the code doing the same.

FS-21 avatar Sep 29 '23 16:09 FS-21

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

github-actions[bot] avatar Sep 29 '23 16:09 github-actions[bot]