mob
var
targetlist = ""
mob
Click(mob/M)
if(istype(M,/mob))
if(usr.Target == 1)
for(M in usr.targetlist)
M.overlays -= /obj/Target
usr.targetlist -= M
usr.Target = 0
if(usr.Target == 0)
usr.targetlist+=M
M+=/obj/Target
usr.Target = 1
Problem description:
The mobs will not get an overlay, and they are not added to the variable targetlist.
As for your problem with targetlist... it's not a list, it's text. You need to define that variable as a list if you want to treat it as a list: