Warcraft III resources & community, 2003–2006 · archived

Stick a unit to the ground

4 posts
#1

Stick a unit to the ground

I want to stop a unit from moving as part of a jass spell. I would like them to be able to change direction and still cast spells while they are stuck. In attempt to do this I did:
call SetUnitMoveSpeed( NT_UNITS[num], -9999.00 )

Apparently that doesn't do anything but slow them down to I would guess the min speed. Any ideas?
#2
Why not instead hide the unit, switch it out with a reasonable lookalike but with no movement, and then switch them back out?
#3
It's an AOE spell that is triggered by a unit dying. The trouble is I would have to make a look alike for every creep and hero that could be effected ;)

One would think setting their movement speed to 0 would stop them, but it doesn't. I could use pause unit but they wouldn't be able to do anything for the duration.
#4
Nope Xan... Though that might work it doesn't work for all the units. It needs to work for any unit (right?). So yeah, if you do like Xan said, just make another unit and change it to ward type (no movement).

However, another idea would be to create Pathing Blockers around the unit. You can create either invisible doodads, very close to the unit, or use the action "Environment - Turn Pathing On/Off" and use it with Polar Offset. I never tried it. Just be careful to turn it On once the spell is done.

And turning movement to 0 doesn't work because minimum movement speed is turned to 200 or something.

~Daelin