Okay here is the problem:
1. I have a bunch of active objects that are in the same group
2. I want to be able to detect an overlap of an active with an object in that group, and then set a flag for that group object when overlapped.
3. I want to set the flag back when the active is not overlapping that object
4. If the active overlaps two group objects at once, I want MMF to pick one of the objects and flag it, while ignoring the other object
How can I do this without fastlooping or doing a foreach through all of the group objects?
I figured something like just:
Always - set flag 0 of group objects to off
If active overlap a group object, turn flag 0 on
But that will select more than one group object if the active overlaps them. If I do "pick at random" then it rapidly swaps back and forth between the two overlapping group objects...
Any easy solution to this? I'm trying to do this for a mobile game so avoiding looping through all objects would be extremely crucial.