Is it possible to retrieve the index of an array?
For example, if you have a Unit Group Array of 100 Unit Groups, and I select a unit on the map, is it possible to call a function that would return the index of the unit group that is selected?
I.e., selecting a unit from UnitGroupArray[40] would send a Game message to all players "40". Specifically I'm not looking for workarounds (like setting the custom value or some other integer property of units in the unit group to the array index) since I'd hope a solution could be applicable to any array of any handle.
Thanks
For example, if you have a Unit Group Array of 100 Unit Groups, and I select a unit on the map, is it possible to call a function that would return the index of the unit group that is selected?
I.e., selecting a unit from UnitGroupArray[40] would send a Game message to all players "40". Specifically I'm not looking for workarounds (like setting the custom value or some other integer property of units in the unit group to the array index) since I'd hope a solution could be applicable to any array of any handle.
Thanks