This is an old revision of the document!
⇐ Index
Available in version 1.3 and later.
SetUnitMiniMapImage(<-unit <-imageData)
Sets the minimap image for the unit. The imageData is a string consisting of 0, 1, and 2 characters. It should be 144 characters long (a 12×12 square) with the top left corner being the first 'pixel' of the resulting image. A 0 means a transparent pixel, a 1 means a 'white' pixel, and '2' means a black pixel. Note that SetUnitMiniMapImageColor can be used to change the color of the 'white' pixels. Note that this only works for custom units - built-in units cannot have their image overwritten.
"111111111111 100000000001 101200000001 101200100001 101200100001 101111111001 100000122001 100000120001 100000120001 100000000001 100000000001 111111111111" RemoveWhiteSpace ->miniMapImage SetUnitMiniMapImage(self <-miniMapImage)
⇐ Index