ID:148669
 
Hey, does anyone know how to delete rgb overlays when it's using a var? for, my SSJ Coding is sort of weird, if you have a RGB color added to your hair, it keeps that overlay on there and it looks really funny, can anyone nlighten me on this? If you figure it out first, I reward the winner 10 dimes ^_^
Goku72 wrote:
Hey, does anyone know how to delete rgb overlays when it's using a var? for, my SSJ Coding is sort of weird, if you have a RGB color added to your hair, it keeps that overlay on there and it looks really funny, can anyone nlighten me on this? If you figure it out first, I reward the winner 10 dimes ^_^

If you want to remove the rgb() values on the overlay, then just subtract it from the overlay before it is put on the mob.

Something like:
var/obj/Hair_Overlay/O = new
O.icon -= rgb(50,30,100)
src.overlays += O


Hope that helps.