| 06-13-2009, 01:21 AM | #1 |
Why aren't these functions (or what you call that?) included in the xecollider readme? JASS://--- // targetUnit is a unit to follow (or try to follow), notice that homing // options require an angleSpeed different to 0.0 // public method operator targetUnit takes nothing returns unit return this.homingTargetUnit endmethod public method operator targetUnit= takes unit u returns nothing if(u==null) then set this.homingMode=0 else set this.homingMode= .HOMING_UNIT endif set this.homingTargetUnit=u endmethod //---- // targetPoint is a point to reach (or try to reach), notice that homing // options require an angleSpeed different to 0.0 // public method setTargetPoint takes real x, real y returns nothing set this.homingMode= .HOMING_POINT set this.homingTargetX=x set this.homingTargetY=y endmethod public method setTargetPointLoc takes location loc returns nothing set this.homingMode= .HOMING_POINT set this.homingTargetX=GetLocationX(loc) set this.homingTargetY=GetLocationY(loc) endmethod //---- // Call this in case you used targetUnit or TargetPoint so the missile // forgets the order to home that target. // public method forgetTarget takes nothing returns nothing set this.homingMode = 0 endmethod |
