download X3:Terran Conflict Hotkey: Scan Target Asteroid or Ship by Korval

Resources Used
Text Files:7042
Textpages:7042
Command Slots:
Wares:
Readme:
Download links
ScanTargetObject_v1.2.spk6.22 KB
Scan Target Asteroid or Ship (v1.2)

What it does
This script creates a hotkey which will cause the targeted asteroid or ship to be scanned (provided the relevant scanner is installed and the object is within scanner range). If you use the hotkey to scan an asteroid, its resource type and yield will be displayed at the bottom of the screen. For ships, a message describing the contents as legal or illegal is displayed. A warning is displayed if an illegal scan is about to take place. To scan anyway, press the hotkey again within 2 seconds.


Limitations and Caveats
  • Asteroids not appearing on the gravidar or the sector map apparently can't be scanned until something has hit them. Until then, the game will tell the script that nothing is targeted and you'll get the "Invalid object" message. A simple work-around is shoot the rock at least once. Then you'll be able to scan it. This will be corrected in a later version if I find out how.

What it does not do
  • The ship information screen will not be opened automatically; to see the ship's cargo, press the command "Target" -> "Freight"
  • Automate the search for and scanning of asteroids. There are already one or two scripts by other people for that. This one only provides a hotkey for use in the ship you're currently piloting.

Installing/removing
  • Install and remove using Cycrow's X-Universe Plugin Manager
  • An optional script to unregister the hotkey is included. Just remember to run it BEFORE you uninstall the script ;) Instructions are in the readme.


Additional Credit
  • Cycrow: for the X-Universe Plugin Manager, his basic scripting guides (here), and advice on the ship-scanning cmd.
  • s9ilent: for telling me how to find and trigger sound events
  • The Xai Corporation: for hosting scripts and their online version of the MSCI-Handbook
  • Egosoft: for creating the whole X Universe
boron