ID:267433
 
I have a problem when I unequip my weapon. The Equip code is bellow which seems to be working fine it adds what I want.
var/Staff = new /obj/overlay/Weapon(null) Staff:icon_state="staff" P.overlays += Staff

Now my problem is when I try and unequip the overlay of the staff is still there here is what Im using to get ride of the overlay.
P.overlays -= /obj/overlay/Weapon

So could you please help me thanks.
Green Lime wrote:
I have a problem when I unequip my weapon. The Equip code is bellow which seems to be working fine it adds what I want.
<code> var/Staff = new /obj/overlay/Weapon(null) > Staff:icon_state="staff" > P.overlays += Staff</code>

Now my problem is when I try and unequip the overlay of the staff is still there here is what Im using to get ride of the overlay.
<code> P.overlays -= /obj/overlay/Weapon</code>

So could you please help me thanks.

You need to remove the staff.

P.overlays.Remove(Staff)

Resonating Light