Bump(atom/O)
if(istype(O,/obj/MirrorA))
if(src.dir==NORTH)
src.dir = turn(SOUTH, 90)
walk(src,dir)
if(src.dir==SOUTH)
src.dir = turn(NORTH, 90)
walk(src,dir)
if(src.dir==EAST)
src.dir = turn(WEST, 90)
walk(src,dir)
if(src.dir==WEST)
src.dir = turn(EAST, 90)
walk(src,dir)
if(istype(O,/obj/MirrorB))
if(src.dir==NORTH)
src.dir = turn(SOUTH, 90)
walk(src,dir)
if(src.dir==SOUTH)
src.dir = turn(NORTH, 90)
walk(src,dir)
if(src.dir==EAST)
src.dir = turn(WEST, -90)
walk(src,dir)
if(src.dir==WEST)
src.dir = turn(EAST, -90)
walk(src,dir)
Problem description:
Why wont north and south move just like east and west?!
When the beam hits the mirror from the east, (--> /) it moves it up, and from the west (/ <---) it moves it down, I want it to do the same for north and south except in the appropriate directions, When I try it with the above code, it just hits the mirror and stops when i shoot it from the north or south.