<- CRPL reference <- Movement Commands
Arguments | Result | Notation |
---|---|---|
Unit UID | Y pixel offset | i1 – y1 |
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 SetTargetOffsetY for details.
#Create (targetX and targetY to use for aiming) <-targetUID CONST_PIXELCOORDX GetUnitAttribute <-targetUID GetUnitTargetOffsetX add ->targetX <-targetUID CONST_PIXELCOORDY GetUnitAttribute <-targetUID GetUnitTargetOffsetY add ->targetY