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?
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