flyer_ofp.info 1 Posted March 30, 2022 Hi everybody, I have a small question. Actually it should be easy and straightforward, but it does not work for me... I want that a MK45 Hammer named art1 fires on an invisible helicopter pad named artar1. To do this, I use a trigger (radio activated) and put this into the On Activation box. Instead of getPosATL, I have used position previously. No matter what I do, no shots are going out (distance to target is 2200m if this is a limitation for the gun) art1 doArtilleryFire [(getPosATL artar1),"magazine_ShipCannon_120mm_HE_shells_x32",10]; According to this post below, it should not be a problem. There must be a stupid mistake, but I do not find it... I have also experimented with doFire and fireAtTarget but neither worked for me. Share this post Link to post Share on other sites
Harzach 2518 Posted March 30, 2022 There are corrupted characters in your code, which can happen when you copy/paste from/to the forums. Try re-typing your code from scratch. Or, try copying this cleaned code: art1 doArtilleryFire [(getPosATL artar1),"magazine_ShipCannon_120mm_HE_shells_x32",10]; Share this post Link to post Share on other sites
flyer_ofp.info 1 Posted March 30, 2022 Thank you for your reply. I have deleted the trigger and pasted your code. After it did not work, I typed it manually and checked every single character... nope. Unfortunately this did not solve the problem. ...I continued to experiment: maybe the invisible helipad was the problem... So I made my player character the target. --> Boooom. I replaced the helipad with a greenback... no boom 😞 I have somewhere picked up, that the MK45 has only a range of 2km ( https://forums.bohemia.net/forums/topic/217550-mk-45-hammer-as-ngs-needs-the-artillery-computer/?do=findComment&comment=3299459 ). So I created two civilians (to avoid gun fire) within 2km of the artillery and made them a target. --> Boooom. It seems that the range of the MK45 is limited to 2km... Thus not very suitable for on-shore bombardment. I might use some other artillery units hidden on the map. Share this post Link to post Share on other sites
Joe98 93 Posted March 31, 2022 16 hours ago, flyer_ofp.info said: I might use some other artillery units hidden on the map. There is another option. Don't actually fire the MK45. Instead use the shells from the Mk45 and have them land on your target. It can be done with a trigger. . Share this post Link to post Share on other sites
Lunasick 0 Posted October 6, 2024 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 Share this post Link to post Share on other sites