- Joined
- Sep 26, 2009
- Messages
- 9,534
I am unable to test this out... can someone please tell me what would happen in this circumstance? My objective is to create a knockback effect without using hashtables, but I don't know if the TriggerSleepAction will register...
Edit: yes, I do know that TSA has a minimum wait of .26, but I am hoping the minute differences between the wait times will sometimes register at a slightly different time.
JASS:
function testrun takes real x, unit u returns nothing
call TriggerSleepAction( x )
call SetUnitX( u , GetUnitX( u ) + 10 )
call SetUnitY( u , GetUnitY( u ) + 10 )
endfunction
function loop takes nothing returns nothing
local real x = 0.
local unit u = GetSpellAbilityUnit()
loop
set x = x + 0.01
call testrun( x , u )
exitwhen x > 0.50
endloop
set u = null
endfunction
Edit: yes, I do know that TSA has a minimum wait of .26, but I am hoping the minute differences between the wait times will sometimes register at a slightly different time.
Last edited: