- Joined
- May 10, 2024
- Messages
- 20
Hello!
I have an array of Units with initial value set to noUnit. I want to detect removed unit while iterating over array.
As far as I know unit can be removed by the engine after decay or by using Unit - Remove() function. Methods below is not working:
1. GUI unit comparison
2. JASS
What happens to unit in array in such situations?
I have an array of Units with initial value set to noUnit. I want to detect removed unit while iterating over array.
As far as I know unit can be removed by the engine after decay or by using Unit - Remove() function. Methods below is not working:
1. GUI unit comparison
unitArray[unitIndex] equal to No Unit
2. JASS
if udg_unitArray[udg_unitIndex] == null then
What happens to unit in array in such situations?