var/obj/h = new/obj/overlay/emoticon
h.icon_state = v
usr.emoticon = h
usr.overlays += usr.emoticon
(v is a parameter passed into the proc)
Ok so I do the above, and the overlay appears fine (I also have it set on a timed disappear). HOWEVER, for some of the icon states it plays from like the middle of the animation, which ruins what I'm trying to do.
I need it to be an overlay, cause, as you can see, it's an emoticon. Any ideas why this is happening?
Failing that, is there any way to reset the animation of an icon so that it plays in the correct order?