The 0 index is exactly what OP is asking for. What OP wants is an easy way to clear all markers off the group without spamming messages. The 0 index at the end of the loop only clears the last marker off of OP, after spamming all marks on themselves to clear from the group.
Instead of the 0-8 loop, OP needs to loop through all group units using the 0 index. This will clear any marker they have with no message. This is easy with the group, but harder with non-group units, especially if a mark is on something that is still alive but no longer a valid unit.
|