ID:163794
 
I want to make mud in my game and when you come out of the mud you look muddy, but I don't know how to code it.
You can do it one of two ways:

a. Add an overlay:

var/obj/CharOverlays/MudOverlay/mud = new();
src.overlays += mud;


or

b. Change the icon_state:

src.icon_state = "MudDefault";