- Joined
- May 30, 2008
- Messages
- 430
Those are mine current sliding triggers i am trying to make them work for now after this i will try to make the sliding thing
how to fix my current code
Edited:1
JASS:
function MasterSlideTimer takes nothing returns nothing
local timer t = CreateTimer()
call TimerStart(t,0.25,false,function MasterSlide)
set t = null
endfunction
JASS:
function MasterSlide takes nothing returns nothing
local unit udg_kittys
local unit u
local timer t = GetExpiredTimer()
local real lx
local real ly
local location tempPoint
local integer i = 1
local unit group = udg_kittys
loop
exitwhen i > 12
set u = (udg_kittys[i])
set lx = GetUnitX(u)
set i = i+1
set ly = GetUnitY(u)
set tempPoint = GetUnitLoc(u)
if (GetTerrainType (lx, ly) == 'Nice' ) and (IsUnitInGroup (udg_kittys[i])),( SlidingAlive == true) then
call DisplayTextToForce( GetPlayersAll(), "This is a message" )
endloop
//null all
set u = null
call DestroyTimer(t)
set t = null
call RemoveLocation (tempPoint)
endfunction
how to fix my current code
Edited:1
Last edited: