First, are you applying this to an action game or a turn based game? i.e. will there be live game movements to consider?
Are you talking about the physical act of shooting and missing? i.e animating a bullet and as it travels start to make its accuracy falter? Or do you mean just calculations? If it's just calculations you completely control that with your design.
Arrays have nothing to do with that really, except a way to loop through data. Seems like you are talking about design.
Just calculations. Essentially a real time xcom instead of turn based BUT moving objects should not be considered since the units stay still when firing. Instances that would effect the chance of successfully hitting a target would be cover, weapon, and distance. I know this must be very complex so even guiding me on where to start to learn how to begin such a process would be immensly helpful. Its possible it may be easier than I think for someone with advanced understanding of the capabilities of C2. I was considering creating "safe zone" sprites which would simply be invisible squares that would be placed behind "cover" sprites and having an event that would go something like "When unit is colliding with object "safe zone" object "bullet" has 30% chance of hitting target. Or maybe creating a series of % chances that the bullet can hit the target and initiating these depending on the "safe zone" the unit is colliding with. The problem is, I dont know if that is even possible in C2 and if it is, then what section of the tutorial do I start looking into. Im more than willing to put in the time to research this but I dont know where to begin. Thanks for the response.