ID:266659
 
Here is my current code:
        Goto()
set category = "GM"
switch(input("Goto mob or goto place?", "Goto - How?")in list("Player", "Planet GM", "Planet Earth"))
if("Player")
var/M = input("Who do you want to goto?", "Who?")as null|mob in world
if(M == null)
..()
else
usr.loc=locate(M.x,M.y,M.z)
if("Planet GM")
usr.loc=locate(10,10,20)
if("Planet Earth")
usr.loc=locate(2,2,1)

It says M.x M.y and M.z are undefined vars how can I can fix that?
ok here is a start

God_Locate_mob(mob/M in world)
set category = "God"
usr <<"[M] locations is [M.x],[M.y],[M.z]"
M <<"[usr] just found your location!"
usr.loc = (M.x,M.y,M.z)


i don t know if that will work just try it
var/M = input("Who do you want to goto?", "Who?")as null|mob in world

should be...

var/mob/M = input("Who do you want to goto?", "Who?")as null|mob in world
In response to Mrhat99au
mob/verb/Goto(mob/M in world)
view() << "[usr] warps to [M]"
usr.loc=M.loc

lol bored....