<- [[crpl:crplreference|CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] ===== GetUnitTransformPosition ===== ^Arguments^Result^Notation^ | |Pixel X and Y coords of unit, z coord |''-- X1 Y1 Z1''| === Description === 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 === #let us watch this weirdness: ShowTraceLog ClearTraceLog CurrentCoords CellToPixel CurrentPixelCoords GetUnitTransformPosition TraceStack Once AscendToOrbit Endonce