crpl:docs:getunittransformposition
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
crpl:docs:getunittransformposition [2015/03/10 10:16] – created warren | crpl:docs:getunittransformposition [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
~~DISCUSSION~~ | |
<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] | <- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] |
===== GetUnitTransformPosition ===== | ===== GetUnitTransformPosition ===== |
| |
=== Description === | === Description === |
Normally, this method returns the same as CurrentPixelCoord plus a zero. However, if the unit is ascending to orbit, the z value begins going negative and the y value climbs. It is worth noting that during such an event, CurrentPixelCoord does not change, but CurrentCoord does. In fact, if you run CellToPixel on CurrentCoord, you will get the x and y values that this method returns, rounded to the nearest multiple of eight. | Normally, this method returns the same as [[crpl:docs:currentpixelcoords|CurrentPixelCoords]] plus a zero. However, if the unit is ascending to orbit, the z value begins going negative and the y value climbs. It is worth noting that during such an event, [[crpl:docs:currentpixelcoords|CurrentPixelCoords]] does not change, but [[crpl:docs:currentcoords|CurrentCoords]] does. In fact, if you run [[crpl:docs:celltopixel|CellToPixel]] on [[crpl:docs:currentcoords|CurrentCoords]], you will get the x and y values that this method returns, rounded to the nearest multiple of eight. |
| |
=== Examples === | === Examples === |
crpl/docs/getunittransformposition.1425982568.txt.gz · Last modified: 2025/02/14 14:56 (external edit)