mob
Move(mob/M)
if(ismob(M))
if(M.x >= world.maxx)
M.loc=locate(M.x-world.maxx+2,M.y,M.z)
else if(M.x <= 1)
M.loc=locate(M.x+world.maxx-2,M.y,M.z)
if(M.y >= world.maxy)
M.loc=locate(M.x,M.y-world.maxy+2,M.z)
else if(M.y <= 1)
M.loc=locate(M.x,M.y+world.maxy-2,M.z)
return ..()
Problem description:
Basically i'm trying to make it check if you reach the end of the map it will teleport you to the other side.. so far it doesnt seem to be working at all T.T
any help would be appreciated im not sure what im doing wrong.