Sector Control Comms LUA?

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
GeneralVikus
Posts: 78
Joined: Sun Mar 04, 2018 8:02 am

Sector Control Comms LUA?

Post by GeneralVikus »

Hey guys,

Does anyone happen to have an off - the - shelf LUA script for sector control station destruction (i.e. a pulsed event which causes units within a certain radius or RP - area to go out of communication if the sector control station no longer exists?)

I can probably figure it out myself if given enough time, but I'm guessing scenario designers must have made this already several times over, and since I have no knowledge of LUA I'd rather not reinvent the wheel.
Kushan04
Posts: 1232
Joined: Tue Jun 28, 2005 9:27 pm
Location: USA
Contact:

Re: Sector Control Comms LUA?

Post by Kushan04 »

I don't know of any scenario that does this specifically.

Down Town, 1967 (Standalone Scenarios) has a script that sets the North Vietnamese IADS to comms out when the sector control station is destroyed. It Could be adapted pretty easily. I'd caution against doing it for aircraft though. The current implementation for comms out behavior can be weird. It's fine for individual aircraft but aircraft in groups will suddenly forget who their wingman are.
GeneralVikus
Posts: 78
Joined: Sun Mar 04, 2018 8:02 am

Re: Sector Control Comms LUA?

Post by GeneralVikus »

Kushan04 wrote: Mon May 18, 2026 11:54 pm I don't know of any scenario that does this specifically.

Down Town, 1967 (Standalone Scenarios) has a script that sets the North Vietnamese IADS to comms out when the sector control station is destroyed. It Could be adapted pretty easily. I'd caution against doing it for aircraft though. The current implementation for comms out behavior can be weird. It's fine for individual aircraft but aircraft in groups will suddenly forget who their wingman are.
That's great to know, thanks!
User avatar
blu3s
Posts: 1296
Joined: Fri Jul 08, 2022 9:45 am

Re: Sector Control Comms LUA?

Post by blu3s »

This scenario populates various IADS sectors (based on difficulty) with HQs, Comms, SAMs and EW radars.

https://forums.matrixgames.com/viewtopi ... 5#p5164905
thewood1
Posts: 10330
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: Sector Control Comms LUA?

Post by thewood1 »

Never saw that scenario before. Thats very cool. I have built several scenarios testing out comms loss in integrated networks. its 50/50 I get them to function properly.
User avatar
blu3s
Posts: 1296
Joined: Fri Jul 08, 2022 9:45 am

Re: Sector Control Comms LUA?

Post by blu3s »

Thanks, I've fixed on issue with the scenario setup (seems that some terrain altitudes changed from last year)

The Sector Control is not that hard, you need to create a good data structure and then capture when the units are killed.

For example for each sector you add an HQ unit and a Comms unit. You need to be sure that when those units are killed, then you iterate over the units that belong to the same sector and apply the penalty or leave them out of comms for X mins/hours.
GeneralVikus
Posts: 78
Joined: Sun Mar 04, 2018 8:02 am

Re: Sector Control Comms LUA?

Post by GeneralVikus »

blu3s wrote: Wed May 20, 2026 10:32 am Thanks, I've fixed on issue with the scenario setup (seems that some terrain altitudes changed from last year)

The Sector Control is not that hard, you need to create a good data structure and then capture when the units are killed.

For example for each sector you add an HQ unit and a Comms unit. You need to be sure that when those units are killed, then you iterate over the units that belong to the same sector and apply the penalty or leave them out of comms for X mins/hours.
When you say "units that belong to the same sector," can you explain any more what mechanism you use to determine which units "belong" to which sector? For example, do you mean that the script checks for units which are assigned to an AAW mission associated with that sector? I will take a look at the scenario you provided, but I'm new to LUA so it'd be helpful to have some understanding of what I'm looking at.
User avatar
blu3s
Posts: 1296
Joined: Fri Jul 08, 2022 9:45 am

Re: Sector Control Comms LUA?

Post by blu3s »

I'll write an example this weekend. Basically you decide the structure and the network, you just need to save that structure in the scenario lua workspace for later.
GeneralVikus
Posts: 78
Joined: Sun Mar 04, 2018 8:02 am

Re: Sector Control Comms LUA?

Post by GeneralVikus »

blu3s wrote: Fri May 22, 2026 5:32 am I'll write an example this weekend. Basically you decide the structure and the network, you just need to save that structure in the scenario lua workspace for later.
Awesome, thanks!
User avatar
blu3s
Posts: 1296
Joined: Fri Jul 08, 2022 9:45 am

Re: Sector Control Comms LUA?

Post by blu3s »

Here is the idea, there is not a unique way to implement it but I think the foundamental concept is there.

https://github.com/blu3ser/LuaTutorials/tree/main/IADS
Post Reply

Return to “Command: Modern Operations series”