ID:146758
 
Code:
        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.
So, what are you acctualy trying to do?, do you know if the Bump() works? Make it display a debug or somthing.
In response to Mousie_kebabs
The bump works fine, its nothing to do with the bump, it has to do with turn(), I guess its just not turning the laser at the correct angle, but, the problem is, i dont know what angle to put, ive tried lots of different ones, but i cant seem to make it turn the way it is supposed to.

Example -

X - Laser
/ or \ = Mirror

..X..
..X..
..X..
../..

I want that, to make the laser do this -

.....
.....
.....
XX/..

Understand?
In response to Expellan
Grrr! I REALLY need to know the answer to this !! I must get it done..
In response to Expellan
This is the second time I have seen you do this, you can't bump your post.
Whatever you're trying to do here, that series of if() blocks is the wrong way to do it. For that matter, I'm pretty sure using different types for mirrors in different directions is also a bad idea. You should strongly consider redoing this so there's two dirs involved; from there you'll have a much easier time figuring this out.

Lummox JR