ID:923536
 
(See the best response by Zohan98.)
Code:
obj/Auto_Door
density=1

icon='doors.dmi'
icon_state="AutoDoor"
/*proc*/()
src.density=0
spawn(1)
src.icon_state="AutoDoorFlick"
spawn(30)
src.density=1
src.icon_state="AutoDoor"
DblClick()
if(src.owner==usr.key)
del(src)
else
usr<<"That isn't yours to delete!"


Problem description:
I'm trying to find a proc that will trigger the effect when the usr tries step on it.

See the notation.

Note: I tried Bump(), Enter(), Entered()



Enter()

And Remove density from the object, and instead of changing the icon_state for a certain amount of time than returning it to default, use
 flick()
obj/Auto_Door
density=0

icon='doors.dmi'
icon_state="AutoDoor"
Enter()
src.density=0
spawn(1)
src.icon_state="AutoDoorFlick"
spawn(30)
src.density=1
src.icon_state="AutoDoor"
DblClick()
if(src.owner==usr.key)
del(src)
else
usr<<"That isn't yours to delete!"


Does not work.
Instead of obj, use turf.
turf/Auto_Door
density=0

icon='doors.dmi'
icon_state="AutoDoor"
Enter()
flick("AutoDoorFlick",src)

It's a buildable, it has to be an object to prevent a black space when deleted.
Best response
Well, than. I believe you can use the Bump proc for the mob
mob
Bump(a)
var/obj/o = a
if(istype(o,/obj/Auto_Door))
o.flick("AutoDoorFlick",o)
o.density = 1;spawn(30) o.density = 0
world/turf = /turf/Grass

Setting a default turf for the world should prevent black spaces being deleted