Make Disable and SetDelete work on objects in containers
It would be nice if an object could eliminate itself.
I would like to address a specific instance out of some. I think you can use global variables, selfmade instance IDs, e.g. OnPCEquip (this is always unique) plus some if-blocks to achieve that.
The problem is, that you can not tell RemoveItem which instance to kill. So when an instance knows that it should kill itself, why not allow that in it's local script?
#3 Updated by Who Knows almost 2 years ago
Because it fits here - there is Equip() but no UnEquip().
Right now you need to check how many items of the equipped type are available to the PC, then RemoveItem <oID> <amount> and AddItem <oID> ( <amount> -1 ). All variables content will get lost when those items had scripts running.