turf
sand
icon = 'icons/Sand.dmi'
Entered(mob/m)
if(usr)
m.loc = locate("dirt")
Problem description:
when the mob enters the turf, it relocates the mob. the problem is that i would like usr to be only relocated. all other mobs should be ignored. this example is not working as it should. usr always results in null and i don't know why. can't the usr be under the turf code? can someone please explain why usr is null in this case.
"usr" is generally invalid or unreliable in procs, you're using "m" as you should here, usr isn't meant to be used inside of Enter() or Entered() at all.
You're pretty close as it is, by using the argument to Entered(), so lets expand on that a bit.
You may also want to add a client check if you only want players to teleport.