Check Overlays List? in Developer Help
|
|
Code:
mob/verb PutOverlay() for(var/mob/Monster/M in world) M.overlays+='Overlay.dmi' DestroyMonster() for(var/mob/Monster/M in world) if('Overlay.dmi' in M.overlays) world<<"HE HAZ IT" M.overlays-='Overlay.dmi'
|
Problem description:
How would I make it so I could check if it was in their overlays list? I tried the in operator and I dunno if I've typed it wrong or something but I can't seem to get it.
|
That's a good way to add and remove overlays while giving you more control over the objects in the list :)