ID:156937
 
well, i've thought of ways but i always end up questioning them and not even trying...anyway what i want tot know is what would be the best way to make it so that 2 players dont bump into eachother. for some reason i get the feeling that i keep answering my own question but i stil want to make sure i dont do something stupid.

thanks in advance.

Override turf/Enter() to allow multiple players in the same tile:

turf/Enter(var/mob/M)
// Treat non-mobs normally
if(!ismob(M))
return ..()
// Treat non-players normally
if(!M.key)
return ..()
// Always allow non-dense mobs to enter
if(!M.density)
return 1
// Only check for dense objs and non-player mobs
if(density) return 0
for(var/obj/O in src)
if(O.density) return 0
for(var/mob/M in src)
if(!M.key && M.density) return 0
// If the turf isn't dense and there are no dense objs or mobs, allow entry
return 1
In response to Garthor
k thanks