• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Stick a unit to the ground

Status
Not open for further replies.
Level 2
Joined
Mar 31, 2005
Messages
9
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?
 
Level 2
Joined
Mar 31, 2005
Messages
9
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.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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
 
Status
Not open for further replies.
Top