i agree with barron on the cover meter for the player, but making one to tell ai where they are is a good idea
I've thought of a few ways to make it work, but they are all flawed in some way. for example, i thought of running a looped function to get all the objects on the map, then comparing positions with the ai (a few obvious flaws - cpu time, for one) another was sending out an object using setpos and checking whether it gets displaced, problem being it needs something invisible, so the only options really are a bullet/gamelogic or an addon (gamelogics don't seem to actually have dimensions though, which weeds them out), but a bullet could work
a bit off-topic, yes, but still, its the original topic...kinda....