You have to do the scanning in a loop, so that you always have the right entity.
If you want more help, please post your code.

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version