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
ID:175089
Jun 14 2003, 12:09 pm
|
|
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? |
RaeKwon