Closed MrAlien753 closed 8 months ago
Thanks for that! Now, before we go off trying n*20 to find a coordinate in a zone, can we ensure the zone is big enough? Else this could get costly.
Good remark indeed. We have two option to solve this issue:
We can also reduce the number or tries. At the end the unit will be inside the zone anyway. It might not be within a radius but this is typically less important. (except for SAM systems maybe).
FYI, I do see quite some inefficiencies inside the code. Maybe we should try to solve those as well. Not sure about Lua but in most languages it is better to use:
Actually what is the best way to measure performance of your mission?
Spawn all unit randomly inside a zone, instead of only the first unit in zone and the other within a radius (potentially outside the zone, and in some cases in the middle of a runway)