Unit Image Changing
Posted: Sat Aug 18, 2012 12:07 pm
Hello. I am looking for a reliable way to change a unit's graphic during a match, hopefully through plugins. As of this moment, the only method I can think of is giving the unit an order that causes it to run a specific iscript animation, and during that animation, hide the current overlay and replace it with another one.
However, this method requires a bit of extra overhead (such as the use of an orders.dat entry, which I find to be extremely involved in hardcoded processes and I feel that I only have so few controllable orders to use). Also, the order might run the risk of being cancelled by the player, which I would also not want.
I hope that someone can help me to use the render, draw, and update functions present in the image classes that I found in BWAPI's source, as they look fairly relevant.
However, this method requires a bit of extra overhead (such as the use of an orders.dat entry, which I find to be extremely involved in hardcoded processes and I feel that I only have so few controllable orders to use). Also, the order might run the risk of being cancelled by the player, which I would also not want.
I hope that someone can help me to use the render, draw, and update functions present in the image classes that I found in BWAPI's source, as they look fairly relevant.