ID:173019
 
How do you control the layer of an overlay if it is not a obj and you add it by usr.overlays += icon(..... ?
Darkfirewolf5 wrote:
How do you control the layer of an overlay if it is not a obj and you add it by usr.overlays += icon(..... ?


You don't. Unless you add them in a certain order.
In response to SSJ Radditz
SSJ Radditz wrote:
You don't. Unless you add them in a certain order.

actually i beg to differ. the best way to do this is to set a layer of it and then when you equip it change the layer. take for example this coding:

<code>obj/armorpeice icon = 'icon.dmi' layer = 3 //default obj layer verb equip() set src in usr layer = 8 //whatever you want usr.overlays += src unequip() set src in usr layer = 3 //back to default obj layer usr.overlays -= src</code>
In response to InsayneWrapper
Is there a way to do that but have a different icon for it in the inventory?