ID:175089
 
In my code I am trying to make it so when you log in if an object is equipped it creates and overlay for your character but I cant seem to get it to work, this is what I am using:

Login()
for(var/obj/Armour2/O in usr.contents)
if(O.suffix == "(Equipped)")
var/obj/Armour/top/T = new()
usr.overlays += T
else
return
..()
Does anyone know what I am doing wrong?
Thanks
mob
Login()
for(var/obj/Armour2/O in usr)
if(O.suffix == "(Equipped)")
usr.overlays += O
else
return
..()


RaeKwon
In response to RaeKwon
The overlay doesnt show up still. =(
In response to ShadowBlade6300
Have you got your armour equiped though?

--Lee
In response to Mellifluous
I increased the layer by 1 and the overlays show up now but they dont go away when I unequip them with
Unequip()
usr.overlays -= src

Anyone know whats wrong?