User Tools

Site Tools


crpl:docs:getunittargetoffsety

<- CRPL reference <- Movement Commands

GetUnitTargetOffsetY

ArgumentsResultNotation
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 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
crpl/docs/getunittargetoffsety.txt · Last modified: 2021/02/05 11:45 by Karsten75