Is there anyway to send a selected object list to a function, or otherwise use it anywhere else in an event sheet, other than the event it was picked from?
For example, say I was making a game where I was catching butterflies with a net.
Let's say that I caught (picked) several of the butterflies on screen with one swing, but I only wanted to keep the largest one.
I'd want a function like GetLargestInsect, in order to not have a bunch of nasty code with local variables, loops, conditions, in the middle of a simple event like swing net. I could isolate it, and more importantly, I could reuse it, instead having the same code in multiple places.
Is there any way to send the selected object list to the function, without populating a temporary global array with UIDs?
Thanks