if(usr.selected_weapon)
world<<"Returned true. There was a weapon the user had selected." //debug messages.
world<<"The type of weapon you have selected is [usr.selected_weapon.type]"
usr.overlays-=usr.selected_weapon.type //Here. Why does this not work?
Problem description:
I'm wondering why this doesn't work. I heard from a certain someone (:p) that once the object was created as an overlay it had no reference to the original. Therefore I'm using it's type path to remove it. I don't understand why this doesn't work. The debug messages I got back all basically said it should have worked. What's up?
May want to show the code you're using to add the overlay.