ID:167496
 
how do u make it so a mob can walk through other mobs but it cant go through walls
Something like this:

mob/Bump(mob/M) //the proc that gets called when a mob bumps into something
..() //does the default Bump() stuff
if(M.client) //makes sure that the mob is a player
src.loc = M.loc //moves the mob onto the space


Not sure if that would work but I'm thinking it should.

OR You could do this:

mob/Bump(mob/M)
..()
usr.group += M //makes it so if these 2 people bump, they switch places


Although I'm pretty sure that's not what you want.
In response to KirbyRules
Couldn't you simply set the density of mobs to 0?
In response to Ariii
You could do that but it's very un-efficient.
In response to KirbyRules
if u set your density to 0 your could walk through walls
In response to Mxjerrett
That's why I said it was very un-efficient.