Hi, I ran into a scenario where I had multiple characters on screen with effect items pinned to them. Whenever a character dies, I need to destroy the effects associated with that character. My first solution was to add instance variables to all characters. When creating each effect, I would do something like:
Effect1: Pin Pin to Character (position and angle)
Character: Set Effect1UID to Effect1.UID
And then when a character dies, choose effect instance by:
Effect1: Pick instance with UID Character.Effect1UID
It would be nicer if I didn't need to set and refer to the instance variable like that. It would be nicer if, on death, I could simply say:
Effect1: Pinned to UID Character.UID
I've included code to add that functionality to make it super easy for you if you think it's a good idea!