Removing an Item after using it

Kieron_59
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
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...)

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums