This could fit in both the data and trigger sections, and I put it here because I don't know which one it should go into.
I am attempting to make a group of units, probably twenty or so, that all automatically protect another unit. Obviously, I could trigger this very easily, but I do not know how many of these groups I will have. If I just make an array of unit groups, the limit could easily be exceeded [i]or[i/] a group will die, and I am not sure how to re-populate the array with missing or empty groups all over. Naturally, this got me thinking about using the data editor to make a behavior or ability that orders the units as necessary, but I cannot seem to do anything of the sort. Is there any way I could have the game do this automatically, like with some AI? If not, is there a type of ability that makes the unit being protected "own" the others so I can reference them?
A key detail, which I could not implement properly myself anyway, is that I want melee units to be in front of the unit they are supposed to protect at all times. I could use polar offsets for this, but I would have to check the range on each unit as well as fix the above question.
Sorry for double posting (I know it is highly frowned upon here), but I have found a very promising lead. I remembered that The Great Train Robbery had something like this, and it is actually EXACTLY what I want. I'll post the info here for future reference and for others once I have it all nailed down. That's why I'm double posting; I'm saving room for a nice, longish description.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This could fit in both the data and trigger sections, and I put it here because I don't know which one it should go into.
I am attempting to make a group of units, probably twenty or so, that all automatically protect another unit. Obviously, I could trigger this very easily, but I do not know how many of these groups I will have. If I just make an array of unit groups, the limit could easily be exceeded [i]or[i/] a group will die, and I am not sure how to re-populate the array with missing or empty groups all over. Naturally, this got me thinking about using the data editor to make a behavior or ability that orders the units as necessary, but I cannot seem to do anything of the sort. Is there any way I could have the game do this automatically, like with some AI? If not, is there a type of ability that makes the unit being protected "own" the others so I can reference them?
A key detail, which I could not implement properly myself anyway, is that I want melee units to be in front of the unit they are supposed to protect at all times. I could use polar offsets for this, but I would have to check the range on each unit as well as fix the above question.
Any help would be greatly appreciated.
Sorry for double posting (I know it is highly frowned upon here), but I have found a very promising lead. I remembered that The Great Train Robbery had something like this, and it is actually EXACTLY what I want. I'll post the info here for future reference and for others once I have it all nailed down. That's why I'm double posting; I'm saving room for a nice, longish description.