turf
ladder
icon='Turfs.dmi'
icon_state="ladder"
Entered(mob/M)
M.loc = locate(x,y,2)
hole
icon='Turfs.dmi'
icon_state="hole"
Entered(mob/M)
M.loc = locate(x,y,1)
for(var/turf/dirt in M.loc)
if(T)
new/turf/ladder(M.loc)
Problem description:
So basically I want it so when you go through a hole if there is dirt below it makes a ladder(there are also things like water and path ways that I don't want a ladder to appear in) but when I use the above code it does not make a ladder it just moves the mob onto the dirt.