• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Stick a unit to the ground

Status
Not open for further replies.

BaD_HeX

B

BaD_HeX

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?
 
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.
 
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.
Back
Top