This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setunitminimapimage [2021/01/29 23:51] – created virgilw | 4rpl:commands:setunitminimapimage [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
- | Sets the minimap image to appear | + | 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 12x12 square) with the top left corner being the first ' |
+ | Note that this only works for custom units - built-in units cannot have their image overwritten. | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> | ||
- | " | + | " |
- | 100000000001 | + | 100000000001 |
- | 100000000001 | + | 101200000001 |
- | 100000000001 | + | 101200100001 |
- | 100000000001 | + | 101200100001 |
- | 100000000001 | + | 101111111001 |
- | 100000000001 | + | 100000122001 |
- | 100000000001 | + | 100000120001 |
- | 100000000001 | + | 100000120001 |
- | 100000000001 | + | 100000000001 |
- | 111111111111" | + | 100000000001 |
- | SetUnitMiniMapImage(self < | + | 111111111111" |
+ | SetUnitMiniMapImage(self < | ||
+ | </ | ||
+ | <code 4rpl> | ||
+ | " | ||
+ | 000000000000 | ||
+ | 000000000000 | ||
+ | 000000000000 | ||
+ | 000011110000 | ||
+ | 000012210000 | ||
+ | 000012210000 | ||
+ | 000011110000 | ||
+ | 000000000000 | ||
+ | 000000000000 | ||
+ | 000000000000 | ||
+ | 000000000000" | ||
+ | SetUnitMiniMapImage(self < | ||
+ | SetUnitMiniMapImageColor(self V4(0 1 0 1)) | ||
</ | </ | ||
< | < |