ID:156706
 
How do you edit all overlays on your mob using a verb in game?
like
Go_Giant()
var/icon/I = new(usr.icon)
I.Scale(64, 64)
src.icon=I
but i need an example on how to do it with overlays, anyone have any links to something helpful ?
XskyflakezX wrote:
How do you edit all overlays on your mob using a verb in game?
like
Go_Giant()
var/icon/I = new(usr.icon)
I.Scale(64, 64)
src.icon=I
but i need an example on how to do it with overlays, anyone have any links to something helpful ?

What you can do is:

>       Go_Giant()
> var/icon/I = new(usr.icon)
> I.Scale(64, 64)
> src.icon=I
> var/icon/A = new(usr.Hair)//or whatever other overlays you might want to add, you'll need to adjust 'usr.Hair' to whatever variable you're using to hold it. Another alternative that isn't really preferred is changing 'usr.Hair' to a specific icon but I'd much rather just assign an icon to 'usr.Hair' or whatever you'd like(usr.Weapon, usr. Body, etc..).
> A.Scale(64, 64)
> src.overlays+=A