Name tags only for players nearby

Hi man,
you have to store the widget and the player , i would use a structure or just 2 arrays , here something

lets say you have N characters,
When a player character, reach another character, from the begin overlap, get the actor
save the actor in a clear slot of the array, and in another array save the widget created, using the same slot ,
so for the first char entering the area, Actor [0] =Bob Widget [0] Bob widget …
so for the first char entering the area, Actor [4] =Jane Widget [4] Jane widget …

When an actor leave the area around the char,
Search loop for the array for find the same actor , get the index , and remove only the widget[index]