Removing an Item after using it

Kieron_59
15 Sept 2012, 18:34
I'm making a game which has a lot of items, which when acquired are copied into the player's inventory, and the player can carry multiples of the same item. The problem I'm having is: in the item's 'use this on other objects' script, I can't get it to recognize 'this' in 'Remove this', or in any code within that script. How do I get it to recognize itself as 'this' ?


jaynabonne
15 Sept 2012, 23:01
Not that this probably helps, but "selfuseon" is called via "invoke" which doesn't pass an object. "selfuseanything" does (it's invoked with "do"), but you'd have to check "object2" yourself. (I think I got that right...)