Gunfreak Posted November 2, 2021 Posted November 2, 2021 I want my spitfires to attack a radar station, then go on an attack a couple of 109s. But if I choose CAS, I can't give the ai order to attack spesific air targets, and if I give them CAP, I can't get them to attack ground targets. i7 13700k @5.2ghz, GTX 5090 OC, 128Gig ram 4800mhz DDR5, M2 drive.
Grimes Posted November 2, 2021 Posted November 2, 2021 Using only the mission editor you don't have many options. The most you can do is set them to attack one thing and then change their ROE to allow the AI to go off mission and attack anything. The problem being that they can and will attack anything. The odd thing of all of this is it is mostly an editor limitation. The task for AI to engage a group is the same for ground, sea, and air. Likewise "CAS" is just engageTargets but with ground unit attributes while CAP is engageTargets with aircraft related attributes. Using the scripting engine you can combine the task types or just give orders allowing the group to attack specific groups. https://wiki.hoggitworld.com/view/DCS_task_engageGroup Could be as simple as the following. Click the little question mark icon next to a groups name and it displays information like the groupId and unitIds for that group. Replace the number for groupId from my sample for the 109s and radar. Or just use one of them for the opposite of whether you give em CAS or CAP. If you wanted to use the actual "attack group" task just replace id = "AttackGroup". It has the same input values. local gp = Group.getByName('spitfires'):getController() gp:pushTask({ id = 'EngageGroup', params = { groupId = 20, -- GroupId associated with aircraft }) gp:pushTask({ id = 'EngageGroup', params = { groupId = 5, -- GroupId associated with the radar }) 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts