4rpl:commands:setunitspecifiedtarget
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:setunitspecifiedtarget [2024/02/16 06:56] – Added a few methods on converting V2 to V3 digitalizedMind | 4rpl:commands:setunitspecifiedtarget [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
Sets a unit's specified target location. The specified target is a map cell location that is set either by player interaction or by script. | Sets a unit's specified target location. The specified target is a map cell location that is set either by player interaction or by script. |
| |
''<-pos'' must be a V3, despite the Y location being completely unused. It expects the vector to be this: ''V3(<-X 0 <-Z)'', so if your input is this; ''V2(<-X <-Z)'' the Z value will be read incorrectly. You may easily "convert" vectors as such: ''V3(swap(EV2(<-vector) 0))'' or ''EV2 0 swap V3'' or ''<-vector.y ->vector.z'' If you are converting two ints into a V3, (like what [[GetUnitCell]] returns,) simply push a 0 and swap. | ''<-pos'' must be a V3, despite the Y location being completely unused. It expects the vector to be this: ''V3(<-X 0 <-Z)'', so if your input is this; ''V2(<-X <-Z)'' the Z value will be read incorrectly. You may easily "convert" vectors as such: ''V3(swap(EV2(<-vector) 0))'' or ''EV2 0 swap V3'' or ''<-vector.y ->vector.z'' If you are converting two ints into a V3, (like what [[GetUnitCell]] returns,) simply push a 0 and [[swap]]. |
| |
---- | ---- |
4rpl/commands/setunitspecifiedtarget.1708066567.txt.gz · Last modified: 2025/02/14 14:56 (external edit)