I’ve been at this for hours, so I figured I’d reach out to help save me time. I’m trying to test for multiple instanced overlaps, and I’m successful here:
Normally, yes, however, the issue is that there is a specific component that is overlapping that I do not want to overlap. I’m going to scrap this project, as it was merely for learning, but I do want to figure out why my FOR LOOP is incorrect.
This is not scalable. At least, retroactively. HOWEVER, it is a great tip, nonetheless.
I just want to know if I set this up incorrectly. My approach is wrong (for what I want) but I want to know why my understanding of the For Loop is incorrect.
I’m not even going to try to begin to write Chinese, so, yes, your English is great.
I know this sounds hokey, but I wish I can give everyone credit, because you all helped me get to resolution of this issue. Bao pointed something out that would have driven me nuts, so, there’s that.
The problem was the the loop was only taking the LAST variable value. So, conditions would be:
1,0,1 → 1
1,0,0 → 0
0,1, 1-> 1
etc.
I noticed that if I changed the “Last Index”, the bombs would only work in THAT index.
So, I understand loops, thankfully, but my logic was incorrect.
not really the question but this is a good use for an interface, just call ActivateTurret or whatever and on the target if it implements the interface run any addition checks there.