ID:2897976
 
(See the best response by Meme01.)
Hello guys, I want to make a zone that will delete one specific item when it gets into it, what is the best way for me to implement this?


Best response
area
Zone1
Entered(atom/movable/Atom)
if(istype(Atom, /WHATEVERTYPE))
del Atom
code\game\area\ss13_areas\maintenance_areas.dm:168:error: istype: bad variable definition
code\game\area\ss13_areas\maintenance_areas.dm:168:error: if: invalid variable name: reserved word

It gives me this error with my code

var/area/Zone1

Entered(atom/movable/Atom)
if(istype(Atom, /obj/machinery/atmospherics/supermatter_crystal/engine))
del Atom
Thank you, I solved the issue