Is there a function in the SDK to check if an enemy unit is in visible range of another? If not how can I get an array/vector of all the tiles in visible range of a unit
I'm pretty sure there is. I believe it is used in the airbomb missions because you can only strike units that are currently visible to you. I'd search the .cpp files for VISIBLE.
I'm trying to write an automation for a unit that has it search around and when it sees another unit in its visibility range it avoids it. This is to simulate a loss of communication with the leadership. I was also planning on adding something so that when a friendly unit comes in visible range their ranges combine
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.