| 02-02-2007, 09:20 PM | #1 |
I have a dummy unit which I'm using as a projectile, which has the following properties: Collision Size: 0 Abilities: Locust, Invulnerable Movement Speed: 0 Movement Type: Hover Then when I create the dummy unit, I use JASS:call SetUnitPathing(dummy, false) After that, I use a loop to move the unit, using JASS:call SetUnitPosition(dummy, x, y) The problem that I'm running into, is that if the projectile is moving and runs into a unit, it doesn't go through the unit but instead gets blocked by it. I can't figure out what would cause this dummy unit to have collision, so I'm baffled. Any help would be appreciated. |
| 02-02-2007, 09:27 PM | #2 |
There shouldn't be problem if it has locust, but anyway. Don't use SetUnitPosition, use JASS:call SetUnitX(dummy,x) call SetUnitY(dummy,y) |
| 02-02-2007, 09:39 PM | #3 |
When i use JASS:call SetUnitX(dummy, x) call SetUnitY(dummy, y) In fact, using JASS:call SetUnitX(dummy, x) call SetUnitY(dummy, y) call BJDebugMsg("Move") Displays the text message but does not move the unit, so theres no issue with thread crashing. Also, I am sure that "dummy" is the correct unit. |
| 02-02-2007, 09:48 PM | #4 |
Make sure the unit's move speed is greater than 0. |
| 02-02-2007, 10:01 PM | #5 | |
Yes, theres your problem. Quote:
I unit will not and cannot move when its movespeed is 0. If its a dummy unit, it dosent matter what the movement speed is, it should never move if your updating it very fast, and your dummy units should never be ordered, so they will never move. |
| 02-02-2007, 10:02 PM | #6 |
Thanks for the speedy solution. +rep |
