This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
4rpl:commands:setunitminimapimage [2021/01/31 13:57] – virgilw | 4rpl:commands:setunitminimapimage [2023/05/14 14:39] – [Examples] Now TabSpace based. Vertu | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Description ===== | ===== 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 12x12 square) with the top left corner being the first ' | 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 |
- | | + | 101200000001 |
- | | + | 101200100001 |
- | | + | 101200100001 |
- | | + | 101111111001 |
- | | + | 100000122001 |
- | | + | 100000120001 |
- | | + | 100000120001 |
- | | + | 100000000001 |
- | | + | 100000000001 |
- | | + | 111111111111" |
- | SetUnitMiniMapImage(self < | + | SetUnitMiniMapImage(self < |
</ | </ | ||
< | < |