Clear raid target markers
I want to clear the Raid Targets from everyone in the raid.
At the moment, Lua Code:
I know that I have Code:
/cwm 0 What am I missing? |
Code:
SetRaidTarget("unit", 0) |
Quote:
Unfortunately, there isn't a "clear marker by index" function like there is for world markers. |
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. |
Quote:
Lua Code:
Yeah, that works for the raid I guess. I must admit I didn't realize it when I posted, that I worded my question to be about the raid members specifically. Well, at least I have my answer either way. I either accept the spam, or I clear it off raid members only. If only IsRaidMarkerActive() hadn't returned the status for world markers instead of raid markers (or at least that's how I understood it), I could have used that to minimize the spam. Thanks all of you for the help :) |
I was imagining situations where you have stray markers on mobs that don't have a valid UnitID, which would be a problem too.
|
All times are GMT -6. The time now is 09:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI