Flag advancement


I modified auto-skirm. This widget issues Fight commands to the nearest enemy, neutral flag or enemy flag if the riflemen or smg are idle. I’ve not included russian infantry.
It is pretty useful on maps with lots of flags but you have to turn it off manually unless you want your infantry to always advance against enemies.
Only units built after you turned the widget on are given commands when you turn it off and on.
Since its based on auto-skirm with minimal changes it is not optimized.[attachment=0]unit_S44_Flag_advancement.lua[/attachment]
This is for russian commissars. Issues Move commands instead of Fight commands.[attachment=1]unit_S44_Flag_advancement_Commissar.lua[/attachment]