This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:unitisdestroyed [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:unitisdestroyed [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| <- [[.: | <- [[.: | ||
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | UID | destroyed |
| === Description === | === Description === | ||
| + | Checks if unit is destroyed. Returns 1 (true) if unit not found. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | stack.Push(new Data(1)); | + | #destroy itself if other unit is destroyed |
| - | stack.Push(new Data(u.dead ? 1 : 0)); | + | < |
| - | + | Self 0 DestroyUnit | |
| + | endif | ||
| </ | </ | ||