WolfieeifloW
WEHZ Helper
- Reaction score
- 372
I thought this was quite a simple thing, but it's not working.
The unit's simply do not move at all.
Everything is running fine, and both BJ's show up with 'ran' increasing by 1 every time like it should.
Any reason the units aren't moving?
The unit's simply do not move at all.
Everything is running fine, and both BJ's show up with 'ran' increasing by 1 every time like it should.
JASS:
scope StackerAttach initializer init
globals
private unit s1 = gg_unit_h001_0001
private unit s2 = gg_unit_h001_0002
private timer t = CreateTimer()
private integer ran = 0
endglobals
private function Callback takes nothing returns nothing
call BJDebugMsg("Ran " + I2S(ran) + " times")
call SetUnitX(s1, GetUnitX(s1) + 50.)
call SetUnitX(s2, GetUnitX(s2) + 50.)
set ran = ran + 1
endfunction
private function Conditions takes nothing returns boolean
call BJDebugMsg("Run")
call TimerStart(t, 2., true, function Callback)
return false
endfunction
private function init takes nothing returns nothing
local trigger trig = CreateTrigger()
call TriggerRegisterTimerEvent(trig, 3, false)
call TriggerAddCondition(trig, Condition(function Conditions))
set trig = null
endfunction
endscope
Any reason the units aren't moving?