/mob/verb/setTurned()
{
var/obj/mob/body/A = src.body;
for(var/atom/B in A.overlays)
{
if(src.turned != 0)
{
B.icon = turn(B.icon, 0);
}
world << B;
B.icon = turn(B.icon, 90);
src.turned = 90;
A.overlays -= B;
A.overlays += B;
}
}
Problem description:
The body and the mob have sepret overlays, except this doesn't work. It doesn't even do the 'world << B;'.
I forgot how you could reference to the icons in the overlays without another list to keep track... I did it a long time ago though it was not really robust... involved the colon operator and looping a general variable rather then a typecast one if I recall...