Well I'm having trouble with overlays I'm using something like this to add an overlay
usr.overlays += /obj/swords/short_sword
and I'm using...
usr.overlays -= /obj/swords/short_sword
to remove them. That work fine until a player logs out. When the player logs out with a weapon equiped (which is when the overlay is added) it cannot be removed when they log back in and unequip the weapon.
usr.overlays = null
This works but if there is more than one overlay it removes them all and I don't want that.
I've tried using
usr.overlays += image('swordoverlays.dmi', icon_state = "short_sword")
but got the same problems.
I can use this...
usr.overlays += 'short_sword.dmi'
but I'm using more than one overlay at a time so sometimes a sword is hidden under some armor ETC.
So what can I do. I've tried all sorts but nothings worked.
ID:175689
![]() Mar 20 2003, 2:47 am
|
|
![]() Mar 20 2003, 5:42 am
|
|
Remove all overlays when they log out, then recalculate and apply overlays when they log in.
|