obj/IceTrap
icon = 'trap.dmi'
icon_state="trap"
Enter(A)
if(ismob(A))
var/mob/M = A
var/mob/X = src.owner
if(M.client)
usr.TrapFreeze()
X.trapsout--
del src
else
if(istype(A,/obj/)) return
Problem description: I was wondering why this doesn't work, I know it works as turf/IceTrap but when you spawn a new turn it deletes the current turf on that X,Y,Z. I was wondering if there is anyway to make Enter() work for an object, or am I just being stupid?
So what you could do is every time a turf is entered, you can check if there is an obj in it. Then trigger something if there is.