ID:168827
 
I was wondering if it is possible to check if the usr is on specific turf for example water, how would I do that?
Look up the istype() procedure and the loc variable.
In response to Thief Jack
    water
icon = 'turfs.dmi'
icon_state = "water"
Enter(mob/M)
if(istype(M,/mob) && M.toggle)
return ..()
if(istype(src,/turf/water/))
M.Check()
return 0

Something like this right?
In response to Broly103
Something like this?
mob
Turf_Check()
for(var/turf/T in view(0))
if(istype(T/turf/water/))
usr.Check()