| 05-29-2006, 09:22 PM | #2 |
Your code looks fine, nothing should go wrong, very odd. Try replacing the line: Trigger: Unit - Move blinkunit instantly to ((Position of blinkunit) offset by (blinkdistance x 0.50) towards (Angle from temppoint to (Position of blinkunit)) degrees)with: Trigger: Unit - Move blinkunit instantly to ((Position of blinkunit) offset by (blinkdistance / 0.50) towards (Angle from temppoint to (Position of blinkunit)) degrees)Replace the times by divide, i agree with the times, but its worth a try. I would try doing the opposite if your unit is going on the opposite side :) |
| 05-29-2006, 09:26 PM | #3 |
that wouldnt make it go half way of course...say the distance between the caster and the point he casted on was 500. by multiplying it by 0.5 or dividing it by 2 (i have tried both) it should give the number 250 and move him by that offset if you divide by 0.5 you get 1000... i guess ill try it though..see what happens. can u help me on the collision part? EDIT: i just tested that out and it moved him 1000 backwards O.o think maybe something is returning the angle wrong? EDIT2: haha wow WE is picky. so it seemed it was returning the OPPOSITE angel that i wanted because i told it to take the angle from the point to the unit instead of the unit to the point. fixed that part now. can someone help me with the collision problem |
| 05-29-2006, 09:39 PM | #4 |
Trigger: Unit - Move blinkunit instantly to ((Position of blinkunit) offset by (blinkdistance x 0.50) towards (Angle from temppoint to (Position of blinkunit)) degrees)Should be: Trigger: Unit - Move blinkunit instantly to ((Position of blinkunit) offset by (blinkdistance x 0.50) towards (Angle from (Position of blinkunit) to temppoint) degrees)Before you were using the angle from the target location to the casting unit, therefore making him go backwards. You want to move from his original location towards the target location, so you need it that way. Hope that works. Edit: Damn, posted at the same time you edited =P. |
| 05-29-2006, 09:45 PM | #5 |
Ok glad that works. But what do you mean by Collision? I see no collision in your spell =/ EDIT: I realised im blind, i see collision! Whats wrong with the collision? Thats the correct question :) |
