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:getunitposition [2022/06/21 10:18] – [Examples] workaround for no return value Karsten75 | 4rpl:commands:getunitposition [2022/06/21 10:41] – More efficient method Karsten75 | ||
---|---|---|---|
Line 20: | Line 20: | ||
GetUnitPosition(< | GetUnitPosition(< | ||
</ | </ | ||
- | < | ||
Line 29: | Line 28: | ||
:unitPos | :unitPos | ||
- | StackSize ->stackSize | + | |
- | GetUnitPosition | + | GetUnitPosition |
- | If (Stacksize <-stackSize EQ) | + | If (Stacksize <-size NEQ) |
- | Return | + | V3(-1 -1 -1) |
- | else | + | endif |
- | V3(-1 -1 -1) | + | |
- | endif | + | |
</ | </ | ||
+ | |||
+ | < | ||
+ |