ID:156431
 
i need to know i cant figure it out and i dont people to troll by blocking hallways in my stickman game
Well, I'm not so sure how to make them switch places when they "colldie", but I do know how to do this when they collide. (Hint: Take the time to at least spell your words properly when asking for help.)

What you would do essentially is use the Bump proc, and when you step where another mob is, you would be moved to the other mob's location.

Look it up in the reference for further help, it would be best for you to learn instead of asking for the "codes".
In response to OrangeWeapons (#1)
i tried using that but it didnt work
In response to Laserdog (#2)
If at first you don't succeed, try try again. Or destroy the evidence of ever trying.
mob/Bump(var/mob/M)
if(ismob(M))
var/turf/T1 = M.loc
var/turf/T2 = src.loc
// So we don't bump into them again:
src.density = 0
src.Move(T1)
M.Move(T2)
src.density = 1


Note: if Move() sleeps before returning, this can result in Bad Things happening.