ironfist19
New Member
- Reaction score
- 3
hello, i have made gliding system...
does this looks ok? but i have a question... when the unit who is moving is hard to control.. i see the stop button is activated, letting him hard to control.. how do i set him to like : just stand and glide freely...
JASS:
function Trig_Practice_05_Func002A takes nothing returns nothing
local location gliderpos = GetUnitLoc(GetEnumUnit())
local location glidez = PolarProjectionBJ(gliderpos, 10.00, GetUnitFacing(GetEnumUnit()))
call SetUnitPositionLoc( GetEnumUnit(), glidez )
call RemoveLocation (glidez)
call RemoveLocation (gliderpos)
endfunction
function Trig_Practice_05_Actions takes nothing returns nothing
set udg_temp_group = GetUnitsInRectAll(GetPlayableMapRect())
call ForGroupBJ( udg_temp_group, function Trig_Practice_05_Func002A )
call DestroyGroup(udg_temp_group)
endfunction
//---ironfist19
function InitTrig_Practice_05 takes nothing returns nothing
set gg_trg_Practice_05 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Practice_05, 0.05 )
call TriggerAddAction( gg_trg_Practice_05, function Trig_Practice_05_Actions )
endfunction
does this looks ok? but i have a question... when the unit who is moving is hard to control.. i see the stop button is activated, letting him hard to control.. how do i set him to like : just stand and glide freely...