I currently am making a rts game. I have an issue where if multiple units are on top of each other (in the same position) one bullet damages all of them. I tried adding some code to pick just one instance, but that doesn't work.
Code relating to bullet and object collisions