ID:261526
 
I want it so that when a mob enters the "KillRoof" tile, all of the pieces of a roof that are in view, change into the "Blank" icon state, which is just mask. I have no idea where to begin, I came up with this, but nothing happens when somone enters the "KillRoof" tile. Any suggestions?

turf
Roof
icon = 'Roof.dmi'
KillRoof //turf that makes the roof go away
icon = 'Turfs.dmi'
icon_state = "Blank"
Entered(mob/M as mob)
for(var/turf/Roof/R in view())
R.icon = 'Nothing.dmi'
turf
Roof
icon = 'Roof.dmi'
KillRoof
icon = 'Turfs.dmi'
icon_state = "Blank"
Enter(mob/M)
for(var/turf/R as turf in range(M, 1))
R.icon = "Nothing.dmi"