This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
crpl:docs:getwall [2013/01/14 14:10] – external edit 127.0.0.1 | crpl:docs:getwall [2018/05/01 20:22] – add example Grabz | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- [[crpl: | ||
===== GetWall | ===== GetWall | ||
Line 11: | Line 11: | ||
Values in between represent varying degrees of health for the wall. | Values in between represent varying degrees of health for the wall. | ||
=== Examples === | === Examples === | ||
- | < | + | Spawn walls under this unit based on its cell width and cell height. Repair these walls every 10 seconds, effectively making them Crazonium (invincible) walls. |
+ | < | ||
+ | GetTimer0 eq0 if | ||
+ | 300 SetTimer0 | ||
+ | |||
+ | CurrentX ->x | ||
+ | CurrentY ->y | ||
+ | |||
+ | Self CONST_CELLWIDTH GetUnitAttribute -> | ||
+ | Self CONST_CELLHEIGHT GetUnitAttribute ->cellHeight | ||
+ | < | ||
+ | < | ||
+ | <-y < | ||
+ | <-x < | ||
+ | I J 1 SetWall | ||
+ | loop | ||
+ | loop | ||
+ | endif | ||
+ | </ |