M
Mythic Fr0st
Guest
Help me fix my slide trigger, its fun! you get to see what kind of strange things get processed by my mind! XD
I dont know what im doing lol
PHP:
function Trig_Slide_Actions takes nothing returns nothing
local real x
local real y
local real a
local real L
local integer i = 1
set L = GetUnitLoc, udg_Raq[i]
set x = GetUnitLoc, udg_Raq[i], 40*cos
set y = GetUnitLoc, udg_Raq[i], 40*sin
set a = x*y
if GetTerrainType(L) not ( equal to "lice") then
call SetUnitPosition udg_Raq[i](a)
endfunction
//===========================================================================
function InitTrig_Slide takes nothing returns nothing
set gg_trg_Slide = CreateTrigger( )
call TriggerRegisterEventTimerPeriodic(Trig_Ice_Slide_Actions, .03)
call TriggerAddAction( gg_trg_Slide, function Trig_Slide_Actions )
endfunction
I dont know what im doing lol