Drawing on the map
Posted: 13 Mar 2010, 16:39
Hey all,
Currently I am trying to debug my AI's handling of resource spots. To that end, it would be incredibly useful to be able to see where it thinks the resource locations are on the map, as well as the distance from the unit's location.
I have jot down a bit of code that issues a AddPointDrawAICommand for each resource location, with the distance as label, but I am not seeing any points on the map. I am watching the game as an observer while two copies of my AI play against one another.
Am I missing anything? Could anyone enlighten me as to the use of the various draw commands?
Thanks in advance,
Loid
Currently I am trying to debug my AI's handling of resource spots. To that end, it would be incredibly useful to be able to see where it thinks the resource locations are on the map, as well as the distance from the unit's location.
I have jot down a bit of code that issues a AddPointDrawAICommand for each resource location, with the distance as label, but I am not seeing any points on the map. I am watching the game as an observer while two copies of my AI play against one another.
Am I missing anything? Could anyone enlighten me as to the use of the various draw commands?
Thanks in advance,
Loid