- Joined
- Mar 7, 2011
- Messages
- 124
I want to prevent unit movement while still allowing unit turning. I need this solution to work with air units in particular, but ideally it would work for all movement types
So, no basic PauseUnit native, because I need turning. My first approach was to use entangling roots, which I couldn't get to work against air units no matter what I tried. So I adopted the Web ability to use entangling roots effect, which almost worked, except it'd teleport units to oblivion if they were on a remotely unpathable location when cast. Then I tried modifying bloodlust to use entangling roots effect, which simply didn't do anything, even though its a legal cast. Finally, I gave up on wc3's data ability system wholesale
Then I switched to
Can anyone please suggest a solution that meets my needs without creating additional quirks?
Also, the SetUnitPropWindow quirk is potentially useful, especially if it can be undone. A lot of physical interactions require forward momentum to turn, and this does that in a simplistic way. Does anyone know if you can revert this quirk without recreating the unit?
So, no basic PauseUnit native, because I need turning. My first approach was to use entangling roots, which I couldn't get to work against air units no matter what I tried. So I adopted the Web ability to use entangling roots effect, which almost worked, except it'd teleport units to oblivion if they were on a remotely unpathable location when cast. Then I tried modifying bloodlust to use entangling roots effect, which simply didn't do anything, even though its a legal cast. Finally, I gave up on wc3's data ability system wholesale
Then I switched to
SetUnitPropWindow(u, 0)
. This would have been perfect, except it seems like either setting to 0 or then calling SetUnitPropWindow(u, GetUnitDefaultPropWindow(u))
causes the unit to have a movement quirk. After restoring normal movement, the unit will no longer stop to turn before moving forward, they will move forward throughout their turn, causing some imprecision/clumsinessCan anyone please suggest a solution that meets my needs without creating additional quirks?
Also, the SetUnitPropWindow quirk is potentially useful, especially if it can be undone. A lot of physical interactions require forward momentum to turn, and this does that in a simplistic way. Does anyone know if you can revert this quirk without recreating the unit?