ID:143300
 
Code:
        jump()
if(usr.dir == WEST)
usr.jumping = 1
usr.dir = WEST
usr.pixel_y = 6
for (var/atom/O in get_step(src,src.dir))
if(O.jumpable == 1)
usr.density = 0
step(usr,WEST)
sleep(5)
usr.density = 1
usr.jumping = 0
usr.pixel_y = 0
step(usr,WEST)
usr.dir = WEST
if(usr.dir == EAST)
usr.jumping = 1
usr.dir = EAST
usr.pixel_y = 6
for (var/atom/O in get_step(src,src.dir))
if(O.jumpable == 1)
usr.density = 0
step(usr,EAST)
sleep(5)
usr.density = 1
usr.jumping = 0
usr.pixel_y = 0
step(usr,EAST)
usr.dir = EAST
if(usr.dir == NORTH)
usr.jumping = 1
usr.dir = NORTH
usr.pixel_y = 6
for (var/atom/O in get_step(src,src.dir))
if(O.jumpable == 1)
usr.density = 0
step(usr,NORTH)
sleep(5)
usr.density = 1
usr.jumping = 0
step(usr,NORTH)
usr.pixel_y = 0
usr.dir = NORTH
if(usr.dir == SOUTH)
usr.jumping = 1
usr.dir = SOUTH
usr.pixel_y = 6
for (var/atom/O in get_step(src,src.dir))
if(O.jumpable == 1)
usr.density = 0
step(usr,SOUTH)
sleep(5)
usr.density = 1
usr.jumping = 0
step(usr,SOUTH)
usr.pixel_y = 0
usr.dir = SOUTH


Problem description:
Arrgh... I gave an obj jumpable = 1 and the usr still can't jump over it.. Is there a problem with something I did using for? should I use something else? Please help.
I see it only works for objs... Why not turfs or mobs?