ID:138941   Sep 3 2011, 2:16 pm Code: ``` var/obj/waterwave/I = new /obj/waterwave var/obj/waterwave/K = new /obj/waterwave var/obj/waterwave/J = new /obj/waterwave if(src.dir == NORTH) I.loc = locate(usr.x,usr.y,usr.z) K.loc = locate(usr.x,usr.y,usr.z) J.loc = locate(usr.x,usr.y,usr.z) if(src.dir == SOUTH) I.loc = locate(usr.x,usr.y,usr.z) K.loc = locate(usr.x,usr.y,usr.z) J.loc = locate(usr.x,usr.y,usr.z) if(src.dir == EAST) I.loc = locate(usr.x,usr.y,usr.z) K.loc = locate(usr.x,usr.y,usr.z) J.loc = locate(usr.x,usr.y,usr.z) if(src.dir == WEST) I.loc = locate(usr.x,usr.y,usr.z) K.loc = locate(usr.x,usr.y,usr.z) J.loc = locate(usr.x,usr.y,usr.z) ``` Problem description: I got everything coded right, no errors, but i tried edit the x and y a million times and can not put in correct direction. At first i thought it might be like X and Y chart, where x is left to right and y is up and down. Can anyone explain or help me it suppose be one tiles ahead of usr and 3tiles wide.
 Sep 3 2011, 2:23 pm 1. You prolly want src. 2. Your x,y assumption was correct. Right now they're all be created under you.
 Sep 3 2011, 2:56 pm In response to Lugia319 Yeah but thats under the usr only. I want it shoot on left,under usr and right. If not that let it shoot a tile ahead on left and right.(This jutsu consist of 3tiles wides.)
 Sep 3 2011, 3:36 pm In response to LexLuther locate(usr.x,usr.y,usr.z) This bit here is your problem. What this does is return the turf under usr. What you need to know here is that x, y, and z are numerical values, this means that you can say usr.x + 1 to get one tile right of usr, and usr.y + 1 to get one tile above usr. Put all of this together, and it you can do things like this: locate(usr.x-1,usr.y+1,usr.z) This line returns the turf to the northwest of usr.
 Sep 3 2011, 4:41 pm In response to Robertbanks2 locate(usr.x-1,usr.y+1,usr.z) Okay this is how i look at it, x-1 is to left of user and 0 which is x is under user, and x+1 is to right of user. So how i make it shoot 1tiles ahead of me. Only one i got to work is South. ```locate(usr.x-1,usr.y+1,usr.z)locate(usr.x,usr.y+1,usr.z)locate(usr.x+1,usr.y+1,usr.z) ```
 Sep 3 2011, 11:47 pm