pick Ship Target
Select a proper target from a ship
Return
ShipAPI target
Parameters
The ship concerned.
Does the ship find a random target or tries to hit its selected one?
NO_RANDOM, If the ship has a valid target, the script will return it. If there is no target, it will check for an unselected cursor target. If there is none, it will return its closest valid threat.
LOCAL_RANDOM, If the ship has a target, the script will pick a random valid threat around that one. If the ship has none, the script will pick a random valid threat around the cursor, If none are found, the script will pick a random valid threat around itself, Can produce strange behavior if used with a limited search cone.
FULL_RANDOM, The script will always return a random valid threat around the ship itself.
IGNORE_SOURCE, The script will pick the closest target of interest.
Range within which the script seeks a target in game units.
Angle within which the script will seek the target. Set to 360 or more to ignore.
Target priority, set to 0 to ignore that class. Other values only used for random targeting.
Target priority, set to 0 to ignore that class. Other values only used for random targeting.
Target priority, set to 0 to ignore that class. Other values only used for random targeting.
Target priority, set to 0 to ignore that class. Other values only used for random targeting.
Target priority, set to 0 to ignore that class. Other values only used for random targeting.