TheBamforth wrote:That works a treat! Should save a lot of time for very specific actions.
While I'm here, my latest issue is dealing with an object which has been cloned from another.
It looks like, while both objects have the same attributes, the code I created for the first doesn't seem to apply to the second - presumably you have to account for each clone and its given the different names. Is there a way of making the code recognise them as if they were the same object? If not, I'll just have to create a limited number of clones as different objects with different names.
If you are talking about script attributes, then the clonmes will have them, and it should work fine. I am guessing you do not mean that.
If you mean in a command or similar, it depends how you check for the item. Using XanMag's example, you could check that the item has the alias "chair", which will match the original and its clones