• 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.

Making a unit unable to move

Status
Not open for further replies.
Level 3
Joined
Aug 20, 2010
Messages
71
I have been working on a spell and at the beginning of it i am making the caster invulnerable and i want him to be unable to move for the duration of the spell. i have tried to ensnare, entangle and web the unit with a dummy but it doesn't seem to work. also i would prefer that the unit remains unpaused for the duration of the spell for the obvious buff duration reasons
 
Level 1
Joined
Jun 13, 2008
Messages
132
Create a tornado slow aura dummy ability with the desired movement reduction (100% percent), create a spellbook to store it and hide the spellbook via trigger, add the spellbook with the tornado slow aura dummy ability to the desired target, wait the desired time or trigger when it wears off, afterwards remove the spellbook and remove the buff.
 
Level 3
Joined
Aug 20, 2010
Messages
71
forgot to mention that i would prefer the minimum movementspeed to be higher than 0 (100 or so) unless if it is possible to trigger the ms so that it remains higher than 100 in every other situation (havent checked that )
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Use SetUnitPropWindow( unit, 0)

You might want to use GetUnitPropWindow(unit) before to be able to reset it to its original value.
 
Level 3
Joined
Aug 20, 2010
Messages
71
i last question that it just came to me: are there any abilities that can change the unit prop window? (asking because i want to test how they would interact with these commands)
 
Status
Not open for further replies.
Top