So.
My problem is having a faster ice and a reverse controlled ice.
FastSlide
function S takes nothing returns nothing local unit u=GetEnumUnit() local real x=GetUnitX(u) local real y=GetUnitY(u) local integer t=GetTerrainType(x,y) if(t==udg_Slide3)then call SetUnitX(u,x+udg_Speed2*Cos(0.017453278*GetUnitFacing(u))) call SetUnitY(u,y+udg_Speed2*Sin(0.017453278*GetUnitFacing(u))) //Delete this line for the cool Realistic Sliding Mode (Between START1 and END1) //START1 call IssueImmediateOrder(u,"stop") //END1 endif set u=null endfunction function Slide takes nothing returns nothing call ForGroup(udg_H,function S) endfunction function InitTrig_FastSlide takes nothing returns nothing set gg_trg_FastSlide=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_FastSlide,0.01,true) call TriggerAddAction(gg_trg_FastSlide,function Slide) endfunction
So I tried that but nothing works by copying and pasting with your triggers... (The save "bug", as we have discussed before).function S takes nothing returns nothing local unit u=GetEnumUnit() local real x=GetUnitX(u) local real y=GetUnitY(u) local integer t=GetTerrainType(x,y) if(t==udg_Slide3)then call SetUnitX(u,x+udg_Speed2*Cos(0.017453278*GetUnitFacing(u))) call SetUnitY(u,y+udg_Speed2*Sin(0.017453278*GetUnitFacing(u))) //Delete this line for the cool Realistic Sliding Mode (Between START1 and END1) //START1 call IssueImmediateOrder(u,"stop") //END1 endif set u=null endfunction function Slide takes nothing returns nothing call ForGroup(udg_H,function S) endfunction function InitTrig_FastSlide takes nothing returns nothing set gg_trg_FastSlide=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_FastSlide,0.01,true) call TriggerAddAction(gg_trg_FastSlide,function Slide) endfunction
As well as the reverse controlling ice.
Could I have those in a non-save-"bug" format, if you can