Im having trouble adding units to a UnitGroup Variable that is set as an array
Global Variable CurUnits[0-15] Type:Unit Group
Basically I need a unit group for each player in game I set all my player variables up as 16 index array to handle every player in game Even if soem players are not used in game i can copy this code to other maps with out having to modify it.
The problem im having is that I can not seem to add units to any other index of this array other then CurUnits[0]
The other indexs do not seem to let me add units to them. Nor do units added give an error while trying to add them to a different index.
I would think you could have an UnitGroup Array but im not having much luck. Am I assigning the index's of it incorrectly? Considering the Unitgroup Is alreayd and array. When I define it do i need to define it as a multi dimensional array or not"
Either way Im just going to Create 16 differnt variables for this 1 for each player. Kinda dissapointed though, that I couldnt get the UnitGroupArray to work.
would be better if you post the triggers and show what is wrong. You can use arrays in unit groups, but my quess is have made some mistake when assigning units to group or when picking them from groups.
Well Im pretty much just looking for a yes or no answer to my question about UnitGroup Arrays.
Yes the editor lets you create a UnitGroup Variable that is an array
Im mainly wondering if they actually work though. Since UnitGroups are already an Array of units I wouldnt be supprised if there were certain limits or complications when trying to use a UnitGroup as an array
Im having trouble adding units to a UnitGroup Variable that is set as an array
Global Variable CurUnits[0-15] Type:Unit Group
Basically I need a unit group for each player in game I set all my player variables up as 16 index array to handle every player in game Even if soem players are not used in game i can copy this code to other maps with out having to modify it.
The problem im having is that I can not seem to add units to any other index of this array other then CurUnits[0]
The other indexs do not seem to let me add units to them. Nor do units added give an error while trying to add them to a different index.
I would think you could have an UnitGroup Array but im not having much luck. Am I assigning the index's of it incorrectly? Considering the Unitgroup Is alreayd and array. When I define it do i need to define it as a multi dimensional array or not"
Either way Im just going to Create 16 differnt variables for this 1 for each player. Kinda dissapointed though, that I couldnt get the UnitGroupArray to work.
would be better if you post the triggers and show what is wrong. You can use arrays in unit groups, but my quess is have made some mistake when assigning units to group or when picking them from groups.
Well Im pretty much just looking for a yes or no answer to my question about UnitGroup Arrays.
Im mainly wondering if they actually work though. Since UnitGroups are already an Array of units I wouldnt be supprised if there were certain limits or complications when trying to use a UnitGroup as an array