It will be very useful to have a scripting command named "getArtillerySolutions" to obtain the firing solutionS (direction + elevation, for high and low solutions) to fire on a target position.
This command should look like getArtilleryETA :
Syntax: unit getArtillerySolutions [targetPosition, magazineType]
Parameters:
unit: Object - artillery unit
targetPosition: Position - position of the target
magazineType: String - type of magazine used
Return Value: Array
The array contains the high and the low firing solutions according to this format : [[elevation high, direction high], [elevation low, direction low]].
If one of the high/low solution is not valid for the given firing parameters, its sub-array should be empty (e.g. : [[elevation high, direction high], []]).