ID:178480
 
When using rgb() how do you make the colors go back to normal?
I tried

mob/proc/Hit()
for(var/mob/M in get_step(usr,usr.dir))
M.hits-=1
usr << "hit"
M.icon+=rgb(90,0,0)
sleep(0.4)
M.icon-=rgb(90,0,0)
M.icon+=rgb(0,90,0)
sleep(0.4)
M.icon-=rgb(0,90,0)
M.icon+=rgb(0,0,90)
sleep(0.4)
M.icon-=rgb(0,0,90)

It doesnt work though
In response to BurningIce
initial()
In response to BurningIce
Try:

<code>icon = initial(icon)</code>

That's the only thing I know of that works, though. You might try preserving the unmodified icon in a seperate variable, then loading it back later.

<code>var/old_icon = 'icon.dmi' icon = 'icon.dmi' // edit RGB icon = old_icon</code>