Hello,
maybe it's already too late for you @flyer_ofp.info, but it can help for the others,
I took your code and modified just few things to make it work:
I placed the MK45 Hammer called "turret_1" and an marker -> System -> Empty which I called "marker_1" --> Make sure that the marker is minimum 705m far away (minimun shooting distance for MK45)!
Instead of getPosATL, I used getMarkerPos:
Trigger
Type: None
Activation "Any Player"
Activation Type: "Detected by BLUFOR"
On Activation:
turret_1 doArtilleryFire [(getMarkerPos "marker_1"), "magazine_ShipCannon_120mm_HE_shells_x32", 5];
Greets,
Lunasick