- Joined
- Aug 21, 2008
- Messages
- 533
JASS:
function Fly takes nothing returns nothing
local unit u = GetEnumUnit()
local real rx = LoadReal( udg_hashTable, GetHandleId(u), StringHash("X"))
local real ry = LoadReal( udg_hashTable, GetHandleId(u), StringHash("Y"))
local real time = LoadReal( udg_hashTable, GetHandleId(u), StringHash("t"))
if (time>0) then
call SetUnitX(u,GetUnitX(u)+rx)
call SetUnitY(u,GetUnitY(u)+ry)
endif
call DisplayTextToForce( GetPlayersAll(), "Work")
set u = null
call KillUnit(u)
endfunction
function Trig_Fly_Actions takes nothing returns nothing
call ForGroup( udg_misslegroup, function Fly )
endfunction
//===========================================================================
function InitTrig_Fly takes nothing returns nothing
set gg_trg_Fly = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Fly, 0.03 )
call TriggerAddAction( gg_trg_Fly, function Trig_Fly_Actions )
endfunction
call DisplayTextToForce( GetPlayersAll(), "Work") is working
but the rest of the trigger8whoch is related to "u") isnt working.
Pls help
