I'm not a programmer but here's a suggestion - on changing formations, could you do something similar to how helicopter altitude is handled in SP:MBT? Or maybe do something w/ the Advance/Defend settings in SPWaW? Just something to consider if you haven't already thought of it.