I'm working on designing some utility functions in my game. They each have a specific purpose e.g. pick all the instances in an area, pick all the instances with a specific frame displayed, count all the instances in an area, etc.
I was hoping if I called a second function inside a function that the instances picked from the first function would be passed to the second function. That would have allowed me to combine all the variations as needed. I tested things and this doesn't seem to be the case and the instances aren't passed along.
Can anyone think of a way around this? The alternative is designing a giant function that includes all variations.... which is not preferred.