Basically this (minus the side filtering):
https://gist.github.com/veteran29/4735d4d96add5cdf0134a834cd2f12d3#file-getmissionlayergroups-sqf
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Event Timeline
Comment Actions
I chose the solution of basically running that script in engine.
Problem with that is that once all units of the group are deleted, the now empty group that still exists inside the layer, will not be returned anymore (as it cannot find it via the units).
If you need empty groups too, we would need to change that. But if you were fine with your script, this will work the same.