Ok let me rephrase. Say I have an IF statement...

if(abs((player.x - my.x) * my.mysize) < 180)

And this is within an entity function, how/what can I replace the "player" pointer so it will react to any entity within range? Remember, I cant use c_trace or c_scan as it will destroy computers with the amount of entities I will be having on screen lol.