I was wondering if someone could explain to me how unit group indexes work. For example, if I remove unit 5 from a unit group does it shift units 6 through the last unit down one so that if you remove unit 5 again it will remove what was initially unit 6?
Or does it instead actually act as an array of units and if you remove unit 5 then any future reference to unit 5 will return an empty unit? I would hope that this is not the case, because it would be a pain to manually update it each time (which for this specific use I would need to do) .
I am having a major bug in my map and need to know which method the game uses so that I can rule out this as the cause of my bug.
I was wondering if someone could explain to me how unit group indexes work. For example, if I remove unit 5 from a unit group does it shift units 6 through the last unit down one so that if you remove unit 5 again it will remove what was initially unit 6?
This should be correct.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I was wondering if someone could explain to me how unit group indexes work. For example, if I remove unit 5 from a unit group does it shift units 6 through the last unit down one so that if you remove unit 5 again it will remove what was initially unit 6?
Or does it instead actually act as an array of units and if you remove unit 5 then any future reference to unit 5 will return an empty unit? I would hope that this is not the case, because it would be a pain to manually update it each time (which for this specific use I would need to do) .
I am having a major bug in my map and need to know which method the game uses so that I can rule out this as the cause of my bug.
@DaBernMon: Go
This should be correct.