Index

:!: Available in version 1.3 and later.

SetUnitMiniMapImage

SetUnitMiniMapImage(<-unit <-imageData)

Description

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.

Examples

   "111111111111
	100000000001
	101200000001
	101200100001
	101200100001
	101111111001
	100000122001
	100000120001
	100000120001
	100000000001
	100000000001
	111111111111" RemoveWhiteSpace ->miniMapImage
	SetUnitMiniMapImage(self <-miniMapImage)
   "000000000000
	000000000000
	000000000000
	000000000000
	000011110000
	000012210000
	000012210000
	000011110000
	000000000000
	000000000000
	000000000000
	000000000000" RemoveWhiteSpace ->miniMapImage
	SetUnitMiniMapImage(self <-miniMapImage)
	SetUnitMiniMapImageColor(self V4(0 1 0 1))

Index