mob
Move()
if(!get_step(src,EAST))
loc=locate((world.maxx-world.maxx+1),y,z)
else if(!get_step(src,WEST))
loc=locate(world.maxx,y,z)
else if(!get_step(src,NORTH))
loc=locate(x,(world.maxy-world.maxy+1),z)
else if(!get_step(src,SOUTH))
loc=locate(x,world.maxy,z)
Problem description:
Basically I'm trying to make it so if you bump the max coordinate possible you go to the other side of the map
get_step sorta works but it works at x 499 instead of x 500.
is there any better way to tell that i have reached the end of the map when going in a certain direction?