ID:1641772
 
(See the best response by Pirion.)

Problem description:
While this seems hard to explain for me, it kind of goes as follows. I've been trying to refer to an object, in a specific location in relation to the user of a verb.

Code:
mob
verb
Alert_Of_Object()
var/obj/potato/P
if(P in //Somehow refer to location in comparison to the user?)
usr << "[P]"



Any help?
Best response
What about this?
locate(p) in src.loc
In response to Pirion
You can use "locate(/obj/potato) in locate(x + dx, y + dy, z + dz)" where (dx, dy, dz) is a vector describing the relative tile to search.