Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Unfortunately, spell shield works even against ultimates.You could fake it with PauseUnitEx and a DDS. You could try making whatever applies the stun an ultimate ability so maybe it pierces the spell shield (I don't know if this would still trigger the shield or what, but ultimates ignore spell immunity/resistant skin). You could do this by applying it with a dummy cast storm bolt by a hero-type dummy with storm bolt as an ultimate, or try flagging the bash spell as an ultimate.
When I use PauseUnitEx the GUI for this unit is gone (there are no abilities or commands). Is there any other method or what to do to prevent the gui from turning black?You could fake it with PauseUnitEx and a DDS. You could try making whatever applies the stun an ultimate ability so maybe it pierces the spell shield (I don't know if this would still trigger the shield or what, but ultimates ignore spell immunity/resistant skin). You could do this by applying it with a dummy cast storm bolt by a hero-type dummy with storm bolt as an ultimate, or try flagging the bash spell as an ultimate.
Custom script: call BlzPauseUnitEx(udg_YourUnit, true)
Custom script: call BlzPauseUnitEx(udg_YourUnit, false)
I did something like that. It works but please tell me is this done correctly?That's not PauseUnitEx, that's Pause.
This function is only available through code (custom script). Also, it can really screw things up if you don't understand how it works.
Custom script: call BlzPauseUnitEx(udg_YourUnit, true)
Custom script: call BlzPauseUnitEx(udg_YourUnit, false)
[vJASS] - PauseUnitEx
With the release of the newer patches came the introduction of a peculiar native, BlzPauseUnitEx. With a bit of experimenting, this native allows one to effectively stop a unit in its' tracks without the loss of shift-order queues, pausing of buffs, etc. However, with it only being the...www.hiveworkshop.com
Bash

Events


Game - DamageEvent becomes Equal to 1.00

Conditions


IsDamageAttack Equal to True


(DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True


(DamageEventTarget is A structure) Equal to False


(DamageEventSource is A Hero) Equal to True

Actions


Custom script: local unit u = udg_DamageEventTarget


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions



Then - Actions




Set VariableSet CV = (Custom value of DamageEventTarget)




Set VariableSet AR_Counter[CV] = (AR_Counter[CV] + 1)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






AR_Counter[CV] Equal to 1





Then - Actions






Custom script: call BlzPauseUnitEx(udg_DamageEventTarget, true)






Unit - Add Stunned (buff) to DamageEventTarget





Else - Actions




Wait 1.00 seconds




Custom script: set udg_AR_Unit = u




Set VariableSet CV = (Custom value of AR_Unit)




Set VariableSet AR_Counter[CV] = (AR_Counter[CV] - 1)




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






AR_Counter[CV] Equal to 0





Then - Actions






Custom script: call BlzPauseUnitEx(udg_AR_Unit, false)






Unit - Remove Stunned (buff) from AR_Unit






Set VariableSet AR_Counter[CV] = 0





Else - Actions



Else - Actions


Custom script: set u = null
Custom script: call BlzPauseUnitEx(udg_DamageEventTarget, true)
Custom script: call BlzPauseUnitEx(udg_AR_Unit, false)
Bash

Events


Game - DamageEvent becomes Equal to 1.00

Conditions


IsDamageAttack Equal to True


(DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True


(DamageEventTarget is A structure) Equal to False


(DamageEventSource is A Hero) Equal to True

Actions


Custom script: local unit udg_AR_Unit = udg_DamageEventTarget


Set VariableSet CV = (Custom value of udg_AR_Unit)


Set VariableSet AR_Counter[CV] = (AR_Counter[CV] + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




AR_Counter[CV] Equal to 1



Then - Actions




Custom script: call BlzPauseUnitEx(udg_AR_Unit, true)




Unit - Add Stunned (buff) to udg_AR_Unit



Else - Actions


Wait 1.00 second game-time


Set VariableSet CV = (Custom value of AR_Unit)


Set VariableSet AR_Counter[CV] = (AR_Counter[CV] - 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




AR_Counter[CV] Equal to 0



Then - Actions




Custom script: call BlzPauseUnitEx(udg_AR_Unit, false)




Unit - Remove Stunned (buff) from AR_Unit



Else - Actions


Custom script: set udg_AR_Unit = null
