<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#movement_commands|Movement Commands]] ===== GetUnitTargetOffsetY ===== ^Arguments^Result^Notation^ | Unit UID | Y pixel offset |'' i1 -- y1 ''| === Description === Allows you to read the y target offset for cores other than this one. Useful for creating custom weapons that may need to hit cores with target offsets. See [[crpl:docs:SetTargetOffsetY]] for details. === Examples === #Create (targetX and targetY to use for aiming) <-targetUID CONST_PIXELCOORDX GetUnitAttribute <-targetUID GetUnitTargetOffsetX add ->targetX <-targetUID CONST_PIXELCOORDY GetUnitAttribute <-targetUID GetUnitTargetOffsetY add ->targetY