I am currently creating an AI system that relies on a heatmap to see where exactly certain actions are taking place and focus the camera in on them. Think of an AI commentator/cameraman, that can identify which buildings are being placed where and how they might affect the outcome of a game. One of the biggest challenges I've come across is trying to tie in a certain set of tile's heights (high ground versus low ground) with a building being placed. For example, a Photon Cannon being placed on the low ground while a Probe attempts to create a Pylon on the high ground. Is there a way I can access these things so I can refer to them in my AI code?
Welcome to sc2mapster! Feel free to send me a PM if you need anything or have any questions!
You should be able to get the height of any unit. I believe that there's a function called "unit height" or "height of unit". One of them should give you the height of the unit to the actual ground, not cliff ground.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Hello,
I am currently creating an AI system that relies on a heatmap to see where exactly certain actions are taking place and focus the camera in on them. Think of an AI commentator/cameraman, that can identify which buildings are being placed where and how they might affect the outcome of a game. One of the biggest challenges I've come across is trying to tie in a certain set of tile's heights (high ground versus low ground) with a building being placed. For example, a Photon Cannon being placed on the low ground while a Probe attempts to create a Pylon on the high ground. Is there a way I can access these things so I can refer to them in my AI code?
Welcome to sc2mapster! Feel free to send me a PM if you need anything or have any questions!
You should be able to get the height of any unit. I believe that there's a function called "unit height" or "height of unit". One of them should give you the height of the unit to the actual ground, not cliff ground.
You can use a trigger to check for terrain height. I believe it's "Height of Point".
@zeldarules28: Go
Thank you very much :)