Mod effects:
Auto-targets the next surface element after destruction of the last. "Find All" Interaction: finds all surface elements of the same type.
Mission targets:
After destruction of a surface element that is mission target, the next nearest mission target will be auto-targeted. Note this only works for missions that use the "rml_destroy_components" MD - which the base game uses for these types of missions. Missions that don't use the "rml_destroy_components" MD (e.g. a custom mission from a mod) is not supported.
"Find All" Interaction:
When a surface element is targeted, use the Interact Menu (key F) to create mission targets of all surface elements of the same type. After destruction of a mission target, the next nearest mission target will be auto-targeted.
As with my other quality-of-life mods, the created mission is a Guidance Mission. By default, you can only have one Guidance Mission. If there are multiple (e.g. from mods), they will be listed in the Guidance Mission tab but you won't be able to switch between them. To make the Guidance Missions tab work like normal missions (i.e. "Set to active", "Set to inactive", etc.), install my other mod, UI Extensions (
https://www.nexusmods.com/x4foundations/mods/552).
Base game vs this mod:
As per the base game, you target surface elements by using the Next/Previous Surface Element keys. I have those mapped to G and H. Without this mod, after a surface element is destroyed, the target is lost, requiring the ship or station to be retargeted. And the surface elements to be retargeted from the start of the internal list of the ship's or station's surface elements. With this mod, the next surface element is automatically targeted after the destruction of the last, allowing easier location of surface elements.
Recommended companion mods:
Here are all my quality-of-life mods. All these mods' missions are listed in the Guidance Missions tab. Use my mod, UI extensions (
https://www.nexusmods.com/x4foundations/mods/552), to enable the Set Active and Set Inactive buttons in Guidance Missions. Otherwise, you won't be able to switch between them manually.
-Loot mining (
https://www.nexusmods.com/x4foundations/mods/511): During a player mining session, manually targeting loot activates the targeting AI to target all others of the same loot. After the destruction of a targeted mineable asteroid, the nearest mineable asteroid with the same loot is auto-targeted.
-Ship scanner (
https://www.nexusmods.com/x4foundations/mods/591): The Ship Scanner is a targeting AI that continually targets unscanned ships after the completion of a ship scan until all ships in your vicinity are scanned.
-Signal leak hunter - increasing range (
https://www.nexusmods.com/x4foundations/mods/498): Scans for and targets signal leaks and/or repair panels within an ever-increasing range.
-Station scanner (
https://www.nexusmods.com/x4foundations/mods/496): When using the spaceship scanner, modules that need the spacesuit scanner are targeted. When using the spacesuit scanner, the closest module with an incomplete scan is targeted. Follow this trail of targets to scan the station.
-Surface element targeting (
https://www.nexusmods.com/x4foundations/mods/710): Auto-targets the next surface element after destruction of the last. Find All surface elements of the same type.
-Waypoint field for deployments (
https://www.nexusmods.com/x4foundations/mods/585): Creates waypoints that you and your wingmen can follow to deployment equipment and weapons.
Install:
-Unzip to 'X4 Foundations/extensions/kuertee_surface_element_targeting/'.
-Make sure the sub-folders and files are in 'X4 Foundations/extensions/kuertee_surface_element_targeting/' and not in 'X4 Foundations/extensions/kuertee_surface_element_targeting/kuertee_surface_element_targeting/'.
Uninstall:
-Delete the mod folder.
Credits
By kuertee.
History:
v1.0.1, 30 Apr 2021:
-Tweak: Now works if you directly target a mission target that is a surface element.
-Bug fix: Previously, you needed to actively deselect a target then select a new target for the mod to work.
v1.0.0, 29 Apr 2021:
-Initial release.