This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
4rpl:commands:getunitposition [2022/07/16 12:55] – Noted V2.4 change. Karsten75 | 4rpl:commands:getunitposition [2023/01/19 09:28] (current) – Expanded example to show how to use vector (aka TrickyCorp Discord Version mod) Karsten75 | ||
---|---|---|---|
Line 20: | Line 20: | ||
<code 4rpl> | <code 4rpl> | ||
GetUnitPosition(< | GetUnitPosition(< | ||
+ | |||
+ | # to extract the individual values from the above vector: | ||
+ | <-pos.x -> | ||
+ | <-pos.y -> | ||
+ | <-pos.z -> | ||
+ | |||
+ | # or use the .dot syntax above to directly access the values in the vector, or | ||
+ | |||
+ | EV3(< | ||
+ | |||
</ | </ | ||
- | A " | + | A " |
<code 4rpl> | <code 4rpl> |