area/Map_Edge
Enter()
.=..()
if(istype(usr,/obj/Energy))
. && del(usr)
else
..()
Problem description:
Areas.dm:5:error: : missing expression
Areas.dm:5:warning: &&: statement has no effect
I've always seen people use the .=..(), and I thought I semi-understood it, but I guess not. I want it to allow energy objects to enter it and then delete them. So I want it to return normally but then delete. Can someone explain what I'm doing wrong?
You just have to place it on the next line down or include a if() statement.