Thread
:
A more efficient 'enemies in range'?
View Single Post
10-29-20, 07:17 AM
#
2
DahkCeles
A Cliff Giant
Join Date: Jun 2020
Posts: 73
I don't know how nameplate numbering works, but if it always starts at 1 then maybe you could add this optimization:
Lua Code:
for
i
=
1
,
40
do
id
=
"nameplate"
.. i
if
UnitExists
(
id
)
then
-- etc...
else
break
;
end
end
DahkCeles
View Public Profile
Send a private message to DahkCeles
Find More Posts by DahkCeles