Setup: Unit X is allowed to have a "free" number of models based on the selection of units A, B C, etc. So if you take three unit A's - squad X is allowed 3 "free" models.
The stat is accumulated and I have seen that it accumulates properly, but how do I get unit X to get the free models based on the stat. Ive tried several versions of:
model[count] = model[count] + stat[marine]
model[minimum] = model[count] + stat[marine]
but unit X never seems to increase or start with the expected number when selected.
Note that I have tried these in the pre-link section of the unit - do I need to have a procedure call to do this instead? And assuming that this works out, if the player selects more eligible units will unit X's model count increase "automatically" or will it have to be deleted and then reselected so that the free model count stays accurate?
The stat is accumulated and I have seen that it accumulates properly, but how do I get unit X to get the free models based on the stat. Ive tried several versions of:
model[count] = model[count] + stat[marine]
model[minimum] = model[count] + stat[marine]
but unit X never seems to increase or start with the expected number when selected.
Note that I have tried these in the pre-link section of the unit - do I need to have a procedure call to do this instead? And assuming that this works out, if the player selects more eligible units will unit X's model count increase "automatically" or will it have to be deleted and then reselected so that the free model count stays accurate?