How about this?
Code:
// Battery1 fires 10 rounds of HE at Target1, 15 mils of dispersion...
_results = [Battery1, getPosATL Target1, "HE", 10, 15.0] call ECHO_fnc_doFireMission;
HTML Code:
ECHO_fnc_DoFireMission
Description:
Execute a fire mission if possible.
Parameters:
Battery - Artillery Module to fire.
Position - Location ATL to fire at. [Pos3d]
Ordnance Type - "HE", "SMOKE", "ILLUM", "WP", "SADARM", "LASER"
Count - Number of rounds to fire. [Integer]
Dispersion - Size of area to fire on, in milliradians.
Returns:
Status - status of mission.
Values are.
"good" - mission accepted and executed.
"badammo" - battery cannot use this type of ordnance.
"dead" - battery no longer functional.
"busy" - battery busy with another mission.
"range" - target not in the range or firing arc of this battery.