ID:175999
 
It would be quite helpful if there was such a thing. Does it exist?

-Dagolar
mob/verb/remove_all_overlays()
usr.overlays = 0



//I'm not sure if this will work... try it.
Dago wrote:
It would be quite helpful if there was such a thing. Does it exist?

-Dagolar

The overlays variable is a list.

I haven't actually tried it, but I imagine deleting everything in it might work.

overlays.Cut()

or alternatively

for(var/a in overlays) del a
In response to Yolloogy
Thank you very much. That saved about 50 repetitive lines of code.

-Dagolar