JASS:
function Trig_TgaaraPyramid_Actions takes nothing returns nothing
local location lll
local real g
local real k=0
set g=g+1
set k=100+4*g
set lll = PolarProjectionBJ(udg_locations03[10],100+6*g,10*g)
call CreateNUnitsAtLoc( 1, 'z004', GetOwningPlayer(udg_units07[1]), lll , g*8 )
call SetUnitScalePercent( bj_lastCreatedUnit , k, k , k)
call UnitApplyTimedLifeBJ( 1,'BTLF',bj_lastCreatedUnit)
set lll = PolarProjectionBJ(udg_locations03[10],100+6*g,180+10*g)
call CreateNUnitsAtLoc( 1, 'z004', GetOwningPlayer(udg_units07[1]), lll , g*8 )
call SetUnitScalePercent( bj_lastCreatedUnit , k,k , k)
call UnitApplyTimedLifeBJ( 1,'BTLF',bj_lastCreatedUnit)
set k=8*g
call SetUnitScalePercent( udg_TgaaraPyramid, k, k , k)
set k=0.0
set lll = 0
call RemoveLocation(lll)
if(g==50)then
set g=0
endif
endfunction
//===========================================================================
function InitTrig_TgaaraPyramid takes nothing returns nothing
set gg_trg_TgaaraPyramid = CreateTrigger( )
call DisableTrigger( gg_trg_TgaaraPyramid )
call TriggerRegisterTimerEventPeriodic( gg_trg_TgaaraPyramid, 0.04 )
call TriggerAddAction( gg_trg_TgaaraPyramid, function Trig_TgaaraPyramid_Actions )
endfunction
Error is
Type mismatch a assignment.
on "k=0.0"
Please help
Last edited: