Thread: Nameplates
View Single Post
07-26-12, 06:12 PM   #14
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Dridzt View Post
Wouldn't that loop run 'forever' and keep bumping index if you happen to reload in an area with no nameplates?
It would indeed.

A possible solution instead of the previous would be using a combination of an event and function that only works on a login (not reload) to reset a SV containing a variable that is set on PLAYER_LOGOUT to keep counting properly.

It would lead into a monstrosity though.

Last edited by p3lim : 07-26-12 at 06:14 PM.