ID:166966
 
how would i find the x and y location of an object i clicked on or if possible how would i find the x and y location relative to the user?
To find the x and y, simply use the x variable and y variable. Example:
obj/Click()
view() << "[src.x],[src.y]"

To answer your other question, I really do not know. I know its possible, though...
In response to Bobthehobo
The second one.

obj/mapobj/Click()
usr << "relative coords: ([src.x-usr.x],[src.y-usr.y])"


I think you do it like that.


--Vito
In response to Vito Stolidus
thats what i was planing to do if there wasnt something easier and src.x dosent work turns out its just plain x. thanks for the help.
In response to Flame500
Actually, I used the src part to make it more readable. You don't need it, x and src.x in such a place are pretty much the same.


--Vito