Jump to content

Recommended Posts

Posted

Any possibility to add a trigger to change an entire coalition ROE? It can pretty annoying having to add dozens of AI task push actions for each group and then have to add each group into the trigger as well

  • Like 1
Posted (edited)
15 hours ago, Hairdo1-1 said:

Any possibility to add a trigger to change an entire coalition ROE? It can pretty annoying having to add dozens of AI task push actions for each group and then have to add each group into the trigger as well

There's no such thing as a coalition ROE in DCS, so no, not possible.

Edited by QuiGon

Intel i7-12700K @ 8x5GHz+4x3.8GHz + 32 GB DDR5 RAM + Nvidia Geforce RTX 2080 (8 GB VRAM) + M.2 SSD + Windows 10 64Bit

DCS Panavia Tornado (IDS) really needs to be a thing!

Tornado3 small.jpg

Posted
On 7/8/2022 at 3:59 AM, QuiGon said:

There's no such thing as a coalition ROE in DCS, so no, not possible.

 

Yes I know. Hence why I placed this post in the Wish list section

  • Like 1
Posted
On 7/7/2022 at 6:52 PM, Hairdo1-1 said:

Any possibility to add a trigger to change an entire coalition ROE?...

Yes, you can use a very little script to do that :

Spoiler
function ChangeCoalRoe(Coal, Roe)
--Coal : 0 neutral, 1 red, 2 blue / Roe : 2 openfire, 3 returnfire, 4 holdfire.
for i = 0, 3 do
local AllGroups = coalition.getGroups(Coal, i)
if #AllGroups > 0 then
for j = 1, #AllGroups do
AllGroups[j]:getController():setOption(0, Roe)
end
end
end
end

 

For example, if you want an action trigger to turn red coaltion to hold fire, use ChangeCoalRoe(1, 4) in a "do script" box.

.miz example attached (F18 player surrounded by naval, sam, and mig groups, that start on "hold fire" Roe, and turn to "open fire" at time > 30s).

This uses Roe, but you could also play with "alarm state" instead I guess.

test-change-Coal-Roe.miz

  • Like 1
Posted
On 7/10/2022 at 8:56 AM, toutenglisse said:

Yes, you can use a very little script to do that :

  Hide contents
function ChangeCoalRoe(Coal, Roe)
--Coal : 0 neutral, 1 red, 2 blue / Roe : 2 openfire, 3 returnfire, 4 holdfire.
for i = 0, 3 do
local AllGroups = coalition.getGroups(Coal, i)
if #AllGroups > 0 then
for j = 1, #AllGroups do
AllGroups[j]:getController():setOption(0, Roe)
end
end
end
end

 

For example, if you want an action trigger to turn red coaltion to hold fire, use ChangeCoalRoe(1, 4) in a "do script" box.

.miz example attached (F18 player surrounded by naval, sam, and mig groups, that start on "hold fire" Roe, and turn to "open fire" at time > 30s).

This uses Roe, but you could also play with "alarm state" instead I guess.

test-change-Coal-Roe.miz 11.07 kB · 1 download

So helpful! Thank you!!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...