Creeperman
Member
Is there a good way to enforce squad minimums and maximums for variably sized child units? IE, a unit may consist of between five and ten models chosen from any of half a dozen different types, in any combination.
I know I can set an exclusion reference on the child models, but I seem to only be able to use that to throw validation errors; AB doesn't prohibit someone from adding multiple child units and pumping up the numbers on each to exceed the maximum overall count (although it will prohibit the addition of new children at that point). I tried writing a SizeLimit script to handle this, but without any apparent way to retrieve the current option's selection count I can't calculate a maximum value of allowable models. Any ideas?
I know I can set an exclusion reference on the child models, but I seem to only be able to use that to throw validation errors; AB doesn't prohibit someone from adding multiple child units and pumping up the numbers on each to exceed the maximum overall count (although it will prohibit the addition of new children at that point). I tried writing a SizeLimit script to handle this, but without any apparent way to retrieve the current option's selection count I can't calculate a maximum value of allowable models. Any ideas?